Skip to content

Releases: sigoden/argc

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

v1.14.0

27 Nov 04:24
Compare
Choose a tag to compare

What's Changed

  • feat: replace argc__last_flag_option with argc__option #279

Full Changelog: v1.13.0...v1.14.0

v1.13.0

27 Nov 01:19
Compare
Choose a tag to compare

What's Changed

  • refactor: optimize the search for bash.exe in windows #275
  • feat: support tcsh #276
  • refactor: argc help text #277
  • refactor: improve tests and examples #278

Full Changelog: v1.12.1...v1.13.0

v1.12.1

15 Nov 02:40
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.12.0...v1.12.1

v1.12.0

13 Nov 09:26
Compare
Choose a tag to compare

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

12 Oct 06:45
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.10.0...v1.11.0