A Bash CLI framework, also a Bash-based command runner.
@env
https://github.com/sigoden/argc/pull/308
@meta version
and @meta author
https://github.com/sigoden/argc/pull/309
@meta require-tools
https://github.com/sigoden/argc/pull/316
Full Changelog: https://github.com/sigoden/argc/compare/v1.16.0...v1.17.0
--argc-mangen
to generate man pages https://github.com/sigoden/argc/pull/300
Full Changelog: https://github.com/sigoden/argc/compare/v1.15.0...v1.16.0
--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
use @meta default-subcommand
to set the current subcommand as the default.
Argc supports two hooks:
_argc_before
: call before running the command function (after initialized variables)
_argc_after
: call after running the command function
Load a .env
file from a custom path, if persent.
# @meta dotenv
# @meta dotenv ~/.env
@meta dotenv
by @sigoden in https://github.com/sigoden/argc/pull/284
@env
by @sigoden in https://github.com/sigoden/argc/pull/287
--argc-shell-path
by @sigoden in https://github.com/sigoden/argc/pull/299
Full Changelog: https://github.com/sigoden/argc/compare/v1.14.0...v1.15.0
argc__last_flag_option
with argc__option
https://github.com/sigoden/argc/pull/279
Full Changelog: https://github.com/sigoden/argc/compare/v1.13.0...v1.14.0
Full Changelog: https://github.com/sigoden/argc/compare/v1.12.1...v1.13.0
Full Changelog: https://github.com/sigoden/argc/compare/v1.12.0...v1.12.1
+
https://github.com/sigoden/argc/pull/261
Full Changelog: https://github.com/sigoden/argc/compare/v1.11.0...v1.12.0
Full Changelog: https://github.com/sigoden/argc/compare/v1.10.0...v1.11.0
-*
https://github.com/sigoden/argc/pull/236
@meta
https://github.com/sigoden/argc/pull/245
@meta
combine-shorts https://github.com/sigoden/argc/pull/246
@meta
inherit-flag-options https://github.com/sigoden/argc/pull/247
Full Changelog: https://github.com/sigoden/argc/compare/v1.9.0...v1.10.0
Full Changelog: https://github.com/sigoden/argc/compare/v1.8.0...v1.9.0