Skip to content

Releases: skx/subcommands

v0.9.2

01 Jan 10:21
@skx skx
Compare
Choose a tag to compare

This release updates the integrated TAB-completion, such that running completion for the help sub-command will only show valid subcommands.

For example:

$ aws-utils help wh[TAB]
whitelist-self  whoami          

Because we can be used for a lot of purposes our tab-completion is a bit inflexible, it completes the name of a valid sub-command, then files/directories. That's probably the best we can do without forcing users to define the kinds of completion they want - but completing on sub-commands is a trivial improvement which is worth making regardless.

v0.9.1

31 Aug 14:38
@skx skx
Compare
Choose a tag to compare

v0.9.1

Bugfix-release; use the correct name of the binary to complete, rather than my hardwired test-program.

v0.9.0

31 Aug 14:35
@skx skx
Compare
Choose a tag to compare

v0.9.0

Update our TAB-completion so that we default to completing flags or files, for the second argument.

This more closely reflects how I use the library, for example sysbox validate-json [file/path/here], and I expect this is more generally useful to others too.

v0.8.0

16 May 18:47
@skx skx
Compare
Choose a tag to compare

v0.8.0

This release updates our release to support the generation of a bash-completion script, for any application using our library.

v0.7.0

15 May 05:50
@skx skx
Compare
Choose a tag to compare

v0.7.0

This release adds a commands sub-command, which is useful for bash-completion.

Please see this example for a good example of using this.

v0.6.0

13 Apr 07:07
@skx skx
Compare
Choose a tag to compare

v0.6.0

This release adds the Commands method, which allows retrieving the names of all known sub-commands, which can be helpful in some cases.

v0.4.0

21 Mar 20:15
@skx skx
Compare
Choose a tag to compare

v0.4.0

  • Align sub-commands in the help output.
  • When foo help bar is shown output any information.
    • Otherwise only the first line.

v0.3.0

21 Mar 20:00
@skx skx
Compare
Choose a tag to compare

Allow matching the first argument, to allow commands to be chosen via symlinks.

v0.1.0

31 Oct 03:53
@skx skx
Compare
Choose a tag to compare

v0.1.0

This is our first stable release of the API, which is now in production use. There is little to say, but I hope it is useful to others too!