Skip to content

v0.1.2

Choose a tag to compare

@Lockyc Lockyc released this 16 Oct 05:22
· 10 commits to main since this release

Fixes

  • set --name quotes every POSIX shell metacharacter (; & | < > ( ) * ? [ ] { } ~ !) in a .env value, so a file written by cred is safe to . ./.env without running any part of the value.
  • show --name reads an unquoted .env value without its trailing # comment, matching sh, python-dotenv and godotenv.
  • --name matches a KEY = value line with whitespace before the =; set updates it instead of appending a duplicate, and show/rm find it.
  • set, show and rm reject a --name that is not a valid .env key (A=B, spaces, newlines, a leading digit or dash) with exit 2, before touching the file.

Changes

  • Internal refactor of the show/rm path checks; no behaviour change.
  • GitHub Actions CI removed; just gate (gofmt check, go vet, go test) is the gate.

Docs

  • README rewritten to state behaviour plainly, including the .env file-mode rule; Release and License badges added.
  • Development section documents the build, test, fmt, gate and install recipes.