(cli *cli)
| 67 | var rulesDeprecationDocumentationText = "*DEPRECATED!* " + rulesDeprecationText |
| 68 | |
| 69 | func rulesCmd(cli *cli) *cobra.Command { |
| 70 | cmd := &cobra.Command{ |
| 71 | Use: "rules", |
| 72 | Short: "Manage resources for rules", |
| 73 | Long: rulesDeprecationDocumentationText + "Rules can be used in a variety of situations as part of the authentication pipeline where " + |
| 74 | "protocol-specific artifacts are generated.", |
| 75 | } |
| 76 | |
| 77 | cmd.SetUsageTemplate(resourceUsageTemplate()) |
| 78 | cmd.AddCommand(listRulesCmd(cli)) |
| 79 | cmd.AddCommand(createRuleCmd(cli)) |
| 80 | cmd.AddCommand(showRuleCmd(cli)) |
| 81 | cmd.AddCommand(updateRuleCmd(cli)) |
| 82 | cmd.AddCommand(deleteRuleCmd(cli)) |
| 83 | cmd.AddCommand(enableRuleCmd(cli)) |
| 84 | cmd.AddCommand(disableRuleCmd(cli)) |
| 85 | |
| 86 | return cmd |
| 87 | } |
| 88 | |
| 89 | func listRulesCmd(cli *cli) *cobra.Command { |
| 90 | cmd := &cobra.Command{ |
no test coverage detected