Skip to content

v0.8.0

Latest

Choose a tag to compare

@erikgrinaker erikgrinaker released this 27 Jul 22:56
· 2 commits to main since this release
v0.8.0
ba10fdc

This release adds support for custom Runner::Command types, and a #[derive(Command)] macro that automatically generates command+argument parsing code for an enum. Command metadata has been split out to a separate Context struct, and the ArgumentConsumer helper has been simplified and stripped down.

Breaking changes

  • a0ba334 Runners now specify a Runner::Command type.
  • dcf8722 Add a Context type with command metadata moved from Command, and pass it separately to Runner::run(), start_command(), and end_command().
  • bebc62a Replace the Argument struct with Argument::Positional(String) and Argument::KeyValue(String, String).
  • 97249a3 Remove Argument::name().
  • f846624 Simplify ArgumentConsumer API.
  • e986109 Use BTreeSet for command tags.
  • c7b353f Make command line numbers private.
  • 49a0431 Pass &Block to Runner::start_block() and end_block().
  • ebe9524 Raise the minimum supported Rust version to 1.88.

Improvements

  • da0cccc Add #[derive(Command)] for generating command parser code for an enum.
  • bb585fa Implement Display for Command and Argument.