SUSE / machinery

A systems management toolkit for Linux
GNU General Public License v3.0
159 stars 32 forks source link

Add `--details` option to `inspect` command #2183

Open cornelius opened 8 years ago

cornelius commented 8 years ago

The inspect command should get an option to specify the detail level of the inspection. This is a shortcut to providing the detail level as individual options and commands.

The option should support the following levels. Each level includes all the information from the previous level:

If additional options are provided together with the --details option such as --scope or --extract-files they are applied as well. Specific options take precedence over options implied by the --details option. For example machinery inspect --details=minimal --scope=users would inspect the scopes os, packages, repositories, patterns, and users.