Skip to content

Commit

Permalink
textproc/ytt: New port: YAML templating tool that works on YAML struc…
Browse files Browse the repository at this point in the history
…ture instead of text
  • Loading branch information
yurivict committed Jan 20, 2024
1 parent 630aa6e commit d42dbe9
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions textproc/Makefile
Expand Up @@ -2137,6 +2137,7 @@
SUBDIR += yi-hunspell
SUBDIR += yodl
SUBDIR += yq
SUBDIR += ytt
SUBDIR += zed
SUBDIR += zenxml
SUBDIR += zorba
Expand Down
20 changes: 20 additions & 0 deletions textproc/ytt/Makefile
@@ -0,0 +1,20 @@
PORTNAME= ytt
DISTVERSIONPREFIX= v
DISTVERSION= 0.47.0
CATEGORIES= textproc

MAINTAINER= yuri@FreeBSD.org
COMMENT= YAML templating tool that works on YAML structure instead of text
WWW= https://carvel.dev/ytt/

LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE

USES= go:modules

GO_MODULE= github.com/carvel-dev/ytt
GO_TARGET= ./cmd/ytt/

PLIST_FILES= bin/${PORTNAME}

.include <bsd.port.mk>
5 changes: 5 additions & 0 deletions textproc/ytt/distinfo
@@ -0,0 +1,5 @@
TIMESTAMP = 1705742601
SHA256 (go/textproc_ytt/ytt-v0.47.0/v0.47.0.mod) = 7e6d12ba01dea00e3d1dea89d8f5a9734f79ac58517fb5b35f1d0b54b85746a1
SIZE (go/textproc_ytt/ytt-v0.47.0/v0.47.0.mod) = 918
SHA256 (go/textproc_ytt/ytt-v0.47.0/v0.47.0.zip) = 57076539715972fe79d1f4b1c4d6ee299e6e1135455c6568291593134c43a49c
SIZE (go/textproc_ytt/ytt-v0.47.0/v0.47.0.zip) = 1193366
20 changes: 20 additions & 0 deletions textproc/ytt/pkg-descr
@@ -0,0 +1,20 @@
ytt (pronounced spelled out) is a templating tool that understands YAML
structure. It helps you easily configure complex software via reusable
templates and user provided values. Ytt includes the following features:

* Structural templating: understands yaml structure so users can focus on their
configuration instead of issues associated with text templating, such as YAML
value quoting or manual template indentation
* Built-in programming language: includes the "fully featured" Python-like
programming language Starlark which helps ease the burden of configuring
complex software through a richer set of functionality.
* Reusable configuration: You can reuse the same configuration in different
environments by applying environment-specific values.
* Custom validations: coupled with the fast and deterministic execution, allows
you to take advantage of faster feedback loops when creating and testing
templates.
* Overlays: this advanced configuration helps users manage the customization
required for complex software. For more, see this example in the online
playground.
* Sandboxing: provides a secure, deterministic environment for execution of
templates.

0 comments on commit d42dbe9

Please sign in to comment.