IonCliCommand, which captures functionality common to all commands/namespaces.
WithIonCliArgument, which adds extension methods to clap's Command type, making it much easier for commands to use the same flag configurations as other commands.
This eliminates a large amount of the copy/pasting that was proliferating across subcommands.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
This PR introduces two traits:
IonCliCommand
, which captures functionality common to all commands/namespaces.WithIonCliArgument
, which adds extension methods toclap
'sCommand
type, making it much easier for commands to use the same flag configurations as other commands.This eliminates a large amount of the copy/pasting that was proliferating across subcommands.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.