Skip to content

Releases: hews/gosubst

gosubst v0.4.0

Choose a tag to compare

@hews hews released this 10 Feb 18:41

gosubst does it again!

Updates for v0.4.0 include:

  • (BREAKING CHANGE for all 0 people who is using this tool) the removal of .Env from the context; realized that Sprig's env() did the job cleaner and better;
  • adds the functions requiredEnvs, requiredVals and requiredFiles to templates: seems useful after debugging missing env vars, bad expansion, or attempts to {{ sh "cat nofile" }} for missing files;
  • better tests.

gosubst v0.3.0

Choose a tag to compare

@hews hews released this 09 Feb 19:30

Another banger from the good people at gosubst.

Updates for v0.3.0 include:

  • the addition of a --debug command line option that just sets a flag in the template context;
  • corrections to the help text.

gosubst v0.2.1

Choose a tag to compare

@hews hews released this 09 Feb 06:49

A solid entry in the gosubst canon!

Updates for v0.2.1 include:

  • changes to env var expansion such that ${ENV_VAR} is expanded, but $ENV_VAR is not – this allows us to use Go template variables;
  • CLI options for only running env var expansion or only running templating, largely for debugging template development;
  • the sh() template function now runs sh instead of /bin/sh;
  • various fixes and cleaner errors, as well as updated documentation.

gosubst v0.1.0

Choose a tag to compare

@hews hews released this 08 Feb 05:02

The original, one-and-only OG, release of gosubst.