Skip to content

Releases: microsoft/knack

knack 0.5.4

29 Mar 19:16
c63836a
Compare
Choose a tag to compare

This release

  • Allows the loading of text files using @filename syntax.
  • Adds the argument kwarg configured_default to support setting argument defaults via the config file's [defaults] section or an environment variable.

knack v0.5.3

05 Mar 23:05
6b5eb5d
Compare
Choose a tag to compare

This release:

  • Removes an incorrect check when adding arguments.

knack v0.5.2

11 Feb 22:09
Compare
Choose a tag to compare

Updates usages of yaml.load to use yaml.safe_load.

knack v0.5.1

07 Nov 22:01
37334be
Compare
Choose a tag to compare

Fix issue with some scenarios (no args and --version)

knack v0.5.0

07 Nov 20:30
e528db1
Compare
Choose a tag to compare
  • Adds support for positional arguments with the .positional helper method on ArgumentsContext.
  • Removes the necessity for the type field in help.py. This information can be inferred from the class, so specifying it causes unnecessary crashes.
  • Adds support for examining the result of a command after a call to invoke. The raw object, error (if any) an exit code are accessible.
  • Adds support for accessing the command instance from inside custom commands by putting the special argument cmd in the signature.
  • Fixes an issue with the default config directory. It use to be .cli and is now based on the CLI name.
  • Fixes regression in knack 0.4.5 in behavior when cli_name --verbose/debug is used. Displays the welcome message as intended.
  • Adds ability to specify line width for help text display.

knack v0.4.5

25 Oct 20:11
d5d76a8
Compare
Choose a tag to compare

Preserves logging verbosity and output format on the namespace for use by validators.

0.4.4

12 Oct 14:15
Compare
Choose a tag to compare

Adds ability to set config file name.
Fixes bug with argument deprecations.

0.4.3

06 Sep 18:08
457d337
Compare
Choose a tag to compare

Fixes issue where values were sometimes ignored when using deprecated options regardless of which option was given.

0.4.2

31 Jul 23:54
Compare
Choose a tag to compare

Bug fixes:
[output]: disable number parse on table mode PR #88

0.4.1

05 Jun 19:51
7cbee25
Compare
Choose a tag to compare

Version 0.4.0 introduced deprecation to Knack. This release fixes a bug related to that.

  • Ensures that the action kwarg is only set if the item is deprecated. Previously it would set it to "None" which would then override a pre-existing action like store_true.

Version 0.4.0 also added the concept of the command group table to the CommandsLoader class. This release corrects an issue related to that:

  • The command group table would only be filled by calls to create CommandGroup classes. This resulted in some gaps in the command group table.