Skip to content

Releases: andrewrosss/module-cli

22.4.2

Choose a tag to compare

@andrewrosss andrewrosss released this 18 Apr 16:12
  • Add a small tests suite of e2e tests
  • Add test.yaml as part of CI
  • Minor documentation fixes/changes

22.4.1

Choose a tag to compare

@andrewrosss andrewrosss released this 17 Apr 04:43
  • Update cli function in template, this function now accepts an optional Sequence[str] parameter
  • Add new short script: mcli (essentially an alias of module-cli)
  • Update project description

22.4.0

Choose a tag to compare

@andrewrosss andrewrosss released this 12 Apr 06:07

Template updates:

  • Update main signature from main() -> str to main(args: Sequence[str] | None = None) -> int | str
  • Remove check for handler attribute on namespace
  • Add --debug flag to generated ArgumentParser
  • Update main to catch Exceptions generated by handler, by default only the error message is shown to the user, however if --debug is set the exception (with stacktrace) is raised
  • Rename args parameter to the more aptly-named ns

1.0.0

Choose a tag to compare

@andrewrosss andrewrosss released this 31 Mar 21:30
Bump version: 0.1.0 → 1.0.0