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:
minimal: Minimal detail level. Only the scopes os, packages, repositories, and patterns are inspected. This is for getting basic data of a system, which can be used as a hint to identify the system and its contents.
quick: Quick inspection to get a full overview of the system without much details. All scopes are inspected, but no files are extracted, and no meta data is gathered which takes time to inspect.
sizes: All scopes are inspected and file and directory sizes are gathered for the file scopes, so that users have a base for deciding if they want to filter out some of the file items when extracting files.
extracted: All scopes are inspected and all files are extracted. This results in a complete description of the system.
full: The analyze command is run in addition to inspecting and extracting all scopes. This results in a description with all data Machinery is able to obtain.
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.
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:
minimal
: Minimal detail level. Only the scopesos
,packages
,repositories
, andpatterns
are inspected. This is for getting basic data of a system, which can be used as a hint to identify the system and its contents.quick
: Quick inspection to get a full overview of the system without much details. All scopes are inspected, but no files are extracted, and no meta data is gathered which takes time to inspect.sizes
: All scopes are inspected and file and directory sizes are gathered for the file scopes, so that users have a base for deciding if they want to filter out some of the file items when extracting files.extracted
: All scopes are inspected and all files are extracted. This results in a complete description of the system.full
: Theanalyze
command is run in addition to inspecting and extracting all scopes. This results in a description with all data Machinery is able to obtain.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 examplemachinery inspect --details=minimal --scope=users
would inspect the scopesos
,packages
,repositories
,patterns
, andusers
.