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 dotenvby @sigoden in #284 - feat: sync nushell changes to completion scripts by @sigoden in #286
- feat: support
@envby @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-pathby @sigoden in #299
New Contributors
Full Changelog: v1.14.0...v1.15.0