Releases: sigoden/argc
Releases · sigoden/argc
v1.22.0
v1.21.1
v1.21.0
What's Changed
Full Changelog: v1.20.1...v1.21.0
v1.20.1
What's Changed
- fix: incorrectly handle args that startswith
-
but are not flags/options #344
Full Changelog: v1.20.0...v1.20.1
v1.20.0
v1.19.0
What's Changed
- refactor: improve invalid subcommand error message #334
- feat: auto alias subcmds with hyphens for underscores #336
- fix: powershell completion script #337
- feat: auto
set -o igncr
for windows msys2 #338 - fix: argc parallel missing argc hooks and array declarations #340
Full Changelog: v1.18.0...v1.19.0
v1.18.0
What's Changed
- feat: add features for easily integrating argc as lib by @sigoden in #323
- fix: nushell completion script by @sigoden in #325
- feat: include metadata when export json by @sigoden in #327
- refactor: omit choices/default/env info if description already contains by @sigoden in #328
- feat: support msys2 script path by @sigoden in #330
- feat: add
--argc-run
to run the script by @sigoden in #331 - feat: make build scripts compatible with Bash strict mode by @KenDJohnson in #329
New Contributors
- @KenDJohnson made their first contribution in #329
Full Changelog: v1.17.0...v1.18.0
v1.17.0
What's Changed
- fix: load dotenv before handle
@env
#308 - feat: add
@meta version
and@meta author
#309 - feat: support assigned options #310
- feat: parameters binding environment variables #312
- feat: support
@meta require-tools
#316 - feat: improve default subcommand #317
- feat: abandon no-inherit-env meta #318
Full Changelog: v1.16.0...v1.17.0
v1.16.0
v1.15.0
New Features
--argc-build
Build a single standalone bash script without argc dependency.
argc --argc-build <SCRIPT> [OUTPATH]
--argc-shell-path
Print current shell path
argc --argc-shell-path
@env
Define a environment
# @env EA optional
# @env EB! required
# @env EC=true default
# @env EDA[dev|prod] choices
# @env EDB[=dev|prod] choices + default
default subcommand
use @meta default-subcommand
to set the current subcommand as the default.
hooks
Argc supports two hooks:
_argc_before
: call before running the command function (after initialized variables)
_argc_after
: call after running the command function
dotenv
Load a .env
file from a custom path, if persent.
# @meta dotenv
# @meta dotenv ~/.env
What's Changed
- chore: fix typos by @cclauss in #280
- feat: improve function parsing by @sigoden in #281
- feat: support hooks by @sigoden in #282
- feat: support
@meta dotenv
by @sigoden in #284 - feat: sync nushell changes to completion scripts by @sigoden in #286
- feat: support
@env
by @sigoden in #287 - refactor: render multiline help by @sigoden in #289
- feat: support argc build by @sigoden in #295
- feat: support default subcommand by @sigoden in #296
- feat: change generated variables for prefixed options by @sigoden in #297
- refactor: improve failed parsing by @sigoden in #298
- feat: support
--argc-shell-path
by @sigoden in #299
New Contributors
Full Changelog: v1.14.0...v1.15.0