Is your feature request related to a problem? Please describe.
Currently the generate and scan commands expect the target policy ID to be passed via the --policy-id CLI flag. However, given policy ID is a required argument (vs an optional flag) for these commands, a more canonical pattern would be to accept the policy ID as a positional argument. In addition, this reduces typing required for the common generate -> scan workflow.
complyctl scan --policy-id cis-fedora-server
Describe the solution you'd like
Policy ID should be passed as a CLI argument, not a flag.
complyctl scan cis-fedora-server
Describe alternatives you've considered
Leave as is today.
Additional context
A few industry precedents:
| Tool |
Pattern |
Example |
kubectl |
Positional |
kubectl get pods my-pod |
docker |
Positional |
docker run nginx |
git |
Positional |
git checkout main |
Is your feature request related to a problem? Please describe.
Currently the
generateandscancommands expect the target policy ID to be passed via the--policy-idCLI flag. However, given policy ID is a required argument (vs an optional flag) for these commands, a more canonical pattern would be to accept the policy ID as a positional argument. In addition, this reduces typing required for the commongenerate->scanworkflow.Describe the solution you'd like
Policy ID should be passed as a CLI argument, not a flag.
Describe alternatives you've considered
Leave as is today.
Additional context
A few industry precedents:
kubectlkubectl get pods my-poddockerdocker run nginxgitgit checkout main