-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f5f368
commit 5704075
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package cli | ||
|
||
import ( | ||
"github.com/urfave/cli/v2" | ||
) | ||
|
||
func (runner *Runner) newSetPolicyCommand() *cli.Command { | ||
return &cli.Command{ | ||
Name: "set", | ||
Usage: "Create a policy file if it doesn't exist", | ||
ArgsUsage: `[<created file path. The default value is "aqua-policy.yaml">]`, | ||
Description: `Create a policy file if it doesn't exist | ||
e.g. | ||
$ aqua policy set # create "aqua-policy.yaml" | ||
$ aqua policy set foo.yaml # create foo.yaml`, | ||
Action: runner.initPolicyAction, | ||
} | ||
} |