Skip to content

Releases: microsoft/knack

0.4.1

05 Jun 19:51
7cbee25

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.

0.4.0

31 May 20:45
43e1875

Choose a tag to compare

  • Add mechanism to deprecate commands, command groups, arguments and argument options.
  • Improve help display support for Unicode.

View commits since last release

Release 0.3.3

02 May 23:50
c5f9af5

Choose a tag to compare

  • expose a callback to let client side perform extra logics (#80)
  • output: don't skip false value on auto-tabulating (#83)

View commits since last release

0.3.2

16 Mar 15:58
803c4cc

Choose a tag to compare

  • ArgumentsContext.ignore() should use hidden options_list (#76)
  • Consolidate exception handling (#66)

View commits since last release

0.3.1

09 Jan 17:09
16d312d

Choose a tag to compare

  • Performance optimization - Delay import of platform and colorama (#47)
  • CLIError: Inherit from Exception directly (#65)
  • Explicitly state which packages to include (so exclude 'tests') (#68)

View commits since last release

0.3.0

21 Nov 16:25
c4e14ae

Choose a tag to compare

Change version to 0.3.0 (#52)

0.2.0

27 Sep 21:15

Choose a tag to compare

  • Support command level and argument level validators.
  • knack.commands.CLICommandsLoader now accepts a command_cls argument so you can provide your own CLICommand class.
  • logging: make determine_verbose_level private method.
  • Allow overriding of NAMED_ARGUMENTS
  • Only pass valid argparse kwargs to argparse.ArgumentParser.add_argument and ignore the rest
  • logging: make determine_verbose_level private method
  • Remove cli_command, register_cli_argument, register_extra_cli_argument as ways to register commands and arguments.

FULL CHANGELOG

0.1.1

05 Jul 21:35

Choose a tag to compare

  • Add more types of command and argument loaders.
  • Add tests.

FULL CHANGELOG

0.1.0

19 Jun 23:12

Choose a tag to compare

Initial release.