Skip to content

Commit

Permalink
fix: Update 'policy run' help message (#1037)
Browse files Browse the repository at this point in the history
* fix: Update 'policy run' help message

* Update cmd/policy.go

Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>

* Update cmd/policy.go

Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>

* Update cmd/policy.go

Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>

* Update cmd/policy.go

Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>

* Update cmd/policy.go

Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>

* Update cmd/policy.go

Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>

* Update cmd/policy.go

Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>

* Update cmd/policy.go

Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>

Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
  • Loading branch information
shimonp21 and erezrokah committed Jun 30, 2022
1 parent 48c66cf commit 2235e82
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cmd/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,25 @@ var (
noResults bool
storeResults bool
policyRunCmd = &cobra.Command{
Use: "run",
Use: "run <policy>",
Short: policyRunHelpMsg,
Long: policyRunHelpMsg,
Example: `
# Download & Run the policies defined in your config
cloudquery policy run
# Run an official policy
# Official policies are available on our hub: https://hub.cloudquery.io/policies
cloudquery policy run aws
# Run a specific policy that is not defined in the config.hcl
# Run official policy
cloudquery policy run aws
# Run a sub-policy of an official policy
cloudquery policy run aws//cis_v1.2.0
# The following will be the same as above
# Official policies are hosted here: https://github.com/cloudquery-policies
cloudquery policy run aws//cis_v1.2.0
# Run community policy
cloudquery policy run github.com/COMMUNITY_GITHUB_ORG/aws
# Run a policy from a GitHub repository
cloudquery policy run github.com/<repo-owner>/<repo-name>
# See https://hub.cloudquery.io for additional policies.`,
# Run a policy from a local directory
cloudquery policy run ./<path-to-local-directory>
# See https://hub.cloudquery.io for additional policies
# See https://docs.cloudquery.io/docs/tutorials/policies/policies-overview for instructions on writing policies`,
RunE: func(cmd *cobra.Command, args []string) error {
source := args[0]
c, err := console.CreateClient(cmd.Context(), getConfigFile(), false, nil, instanceId)
Expand Down

0 comments on commit 2235e82

Please sign in to comment.