Releases: sigoden/argc
Releases · sigoden/argc
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
v1.14.0
What's Changed
- feat: replace
argc__last_flag_option
withargc__option
#279
Full Changelog: v1.13.0...v1.14.0
v1.13.0
v1.12.1
v1.12.0
What's Changed
- refactor: help rendering of multi-occurs/multi-values options #256
- fix: completion problem on bash/zsh #258
- feat: support symbol parameter #260
- feat: support option starts with
+
#261 - feat: support allow-empty option #262
- feat: auto-search completion script in ARGC_COMPLETIONS_PATH #264
- refactor: compgen path if no argc script is found for the command #267
- feat: value notation modifier #268
Full Changelog: v1.11.0...v1.12.0
v1.11.0
v1.10.0
What's Changed
- refactor: prefixed option endsWith
-*
#236 - fix: compgen prefixed option with nospace #237
- feat: compgen file proto #238
- refactor: nushell completion deprecate let-env #239
- refactor: prefixed option supports multi/non-multi #240
- fix: notations are seperated by only one space #241
- refactor: change value color to default #242
- refactor: compgen ignore commands's 1char aliases #243
- feat: export argc__last_flag_option #244
- feat: support
@meta
#245 - feat: support
@meta
combine-shorts #246 - feat: support
@meta
inherit-flag-options #247 - feat: option multi arguments/occurences #248
- fix: compgen incomplete if last arg is subcommand #249
Full Changelog: v1.9.0...v1.10.0