MCPcopy Create free account
hub / github.com/auth0/auth0-cli / rulesCmd

Function rulesCmd

internal/cli/rules.go:69–87  ·  view source on GitHub ↗
(cli *cli)

Source from the content-addressed store, hash-verified

67var rulesDeprecationDocumentationText = "*DEPRECATED!* " + rulesDeprecationText
68
69func 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
89func listRulesCmd(cli *cli) *cobra.Command {
90 cmd := &cobra.Command{

Callers 1

addSubCommandsFunction · 0.85

Calls 8

resourceUsageTemplateFunction · 0.85
listRulesCmdFunction · 0.85
createRuleCmdFunction · 0.85
showRuleCmdFunction · 0.85
updateRuleCmdFunction · 0.85
deleteRuleCmdFunction · 0.85
enableRuleCmdFunction · 0.85
disableRuleCmdFunction · 0.85

Tested by

no test coverage detected