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

Method RuleCreate

internal/display/rules.go:69–83  ·  view source on GitHub ↗
(rule *management.Rule)

Source from the content-addressed store, hash-verified

67}
68
69func (r *Renderer) RuleCreate(rule *management.Rule) {
70 r.Heading("rule created")
71 r.Result(makeRuleView(rule))
72 r.Newline()
73
74 // TODO(cyx): possibly guard this with a --no-hint flag.
75 r.Infof("%s To edit this rule, run `auth0 rules update %s`",
76 ansi.Faint("Hint:"),
77 rule.GetID(),
78 )
79
80 r.Infof("%s Consider running `auth0 test login` to emulate the login flow",
81 ansi.Faint("Hint:"),
82 )
83}
84
85func (r *Renderer) RuleUpdate(rule *management.Rule) {
86 r.Heading("rule updated")

Callers 1

createRuleCmdFunction · 0.80

Calls 6

HeadingMethod · 0.95
ResultMethod · 0.95
NewlineMethod · 0.95
InfofMethod · 0.95
FaintFunction · 0.92
makeRuleViewFunction · 0.85

Tested by

no test coverage detected