-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or ideaResolution-FixedThe issue is fixedThe issue is fixed
Milestone
Description
Summary of the new feature / enhancement
Currently, to define a format for the output, a user needs to add the --format / -f option after the root command and before any subcommands, like:
dsc --format pretty-json resource test -r Microsoft/OSInfo -i '{ "bitness": "64" }'We should make it possible for users to define the format option on the subcommands as well or instead, so they follow a semantic of selecting the command to use, then supplying options for it:
dsc resource test -r Microsoft/OSInfo -i '{ "bitness": "64" }' -f pretty-jsonNote
Additionally, --format doesn't apply to the dsc completer command.
Proposed technical implementation details (optional)
- Define
--formatas a reusable option and add it to the final-leaf subcommands where it applies. For example, the option should be added todsc config setbut notdsc config. - (Optional) Remove the global option, or make
dsc completererror when the global option is specified.
Metadata
Metadata
Assignees
Labels
Issue-EnhancementThe issue is a feature or ideaThe issue is a feature or ideaResolution-FixedThe issue is fixedThe issue is fixed