Skip to content

Releases: lambdaisland/cli

v1.27.121

27 Oct 10:00

Choose a tag to compare

Fixed

  • Hide :no-doc flags from help text
  • Correctly quote in .zshrc completion declaration

v1.26.116

20 Oct 09:14

Choose a tag to compare

Fixed

  • Fix completion when no docstring is present

v1.25.107

16 Oct 09:43

Choose a tag to compare

Added

  • Experimentally add zsh and bash completions
  • Support both :command and :commands on the same level

v0.24.97

12 Jul 09:14

Choose a tag to compare

Fixed

  • When having named positional arguments and trailing unnamed positional arguments, assign them correctly

v0.23.93

25 Feb 08:02

Choose a tag to compare

Added

  • Add source tracking (config provenance) for keys in the initial context

Fixed

  • Only apply flag defaults if they are not yet present in the initial context

v0.22.87

09 Feb 11:08

Choose a tag to compare

Added

  • :middleware can now be a single function, not only a sequence of functions

Changed

  • [BREAKING] When setting a :handler for a boolean flag (one that looks like
    --[no-]...), the handler now receives the boolean value as a second argument
  • [BREAKING] Invoke flag handlers/middleware in the order they are specified, so
    that later flags can override earlier flags

v0.21.84

09 Feb 08:15

Choose a tag to compare

Added

  • Support :middleware in command specs, not just in flag handlers

v0.20.81

06 Feb 07:58

Choose a tag to compare

Fixed

  • Call parse of default value, as documented, also when no :handler for a
    flag is specified. Fixes #9

v0.19.78

23 Dec 08:16

Choose a tag to compare

Added

  • Add provenance tracking, :lambdaisland.cli/sources is a map from options key
    to human readable description of where that key came from, e.g. --foo command line flag, or positional command line argument idx=0. See
    lambdaisland/config for a use case.

v0.18.74

05 Aug 13:14

Choose a tag to compare

Added

  • Allow using a var that points to a map as a command specification