Skip to content

Releases: sigoden/argc

v1.22.0

09 Dec 09:30
Compare
Choose a tag to compare

What's Changed

  • feat: support escaping @ in the comment #351
  • fix: ignore the leading _ when auto-aliasing subcmds #355
  • fix: fish completion doesn't work if commandline contains && or || #366

Full Changelog: v1.21.1...v1.22.0

v1.21.1

09 Nov 15:36
Compare
Choose a tag to compare

What's Changed

  • fix: zsh/tcsh complete ~/ #349

Full Changelog: v1.21.0...v1.21.1

v1.21.0

30 Oct 00:21
Compare
Choose a tag to compare

What's Changed

  • feat: enhence dotenv #346
  • feat: better shell words escaping #347

Full Changelog: v1.20.1...v1.21.0

v1.20.1

17 Aug 00:17
Compare
Choose a tag to compare

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

02 Aug 11:45
Compare
Choose a tag to compare

What's Changed

  • fix: options can accept single dash value #341

Full Changelog: v1.19.0...v1.20.0

v1.19.0

18 Jun 10:46
Compare
Choose a tag to compare

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

30 May 06:54
Compare
Choose a tag to compare

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

Full Changelog: v1.17.0...v1.18.0

v1.17.0

17 Apr 06:12
Compare
Choose a tag to compare

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

26 Mar 03:08
Compare
Choose a tag to compare

What's Changed

  • feat: add --argc-mangen to generate man pages #300
  • fix: compgen should contain help/version flags #301
  • fix: incorrect pwd when running symlink argcfile #304
  • fix: bash completion for values containing COMP_WORDBREAKS #305

Full Changelog: v1.15.0...v1.16.0

v1.15.0

15 Feb 02:42
Compare
Choose a tag to compare

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

New Contributors

Full Changelog: v1.14.0...v1.15.0