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

Function addSubCommands

internal/cli/root.go:166–198  ·  view source on GitHub ↗
(rootCmd *cobra.Command, cli *cli)

Source from the content-addressed store, hash-verified

164}
165
166func addSubCommands(rootCmd *cobra.Command, cli *cli) {
167 // The order of the commands here matters.
168 // Add new commands in a place that reflect its
169 // relevance or relation with other commands.
170 rootCmd.AddCommand(loginCmd(cli))
171 rootCmd.AddCommand(logoutCmd(cli))
172 rootCmd.AddCommand(tenantsCmd(cli))
173 rootCmd.AddCommand(appsCmd(cli))
174 rootCmd.AddCommand(aculCmd(cli))
175 rootCmd.AddCommand(usersCmd(cli))
176 rootCmd.AddCommand(rulesCmd(cli))
177 rootCmd.AddCommand(actionsCmd(cli))
178 rootCmd.AddCommand(apisCmd(cli))
179 rootCmd.AddCommand(rolesCmd(cli))
180 rootCmd.AddCommand(organizationsCmd(cli))
181 rootCmd.AddCommand(universalLoginCmd(cli))
182 rootCmd.AddCommand(phoneCmd(cli))
183 rootCmd.AddCommand(emailCmd(cli))
184 rootCmd.AddCommand(customDomainsCmd(cli))
185 rootCmd.AddCommand(quickstartsCmd(cli))
186 rootCmd.AddCommand(attackProtectionCmd(cli))
187 rootCmd.AddCommand(testCmd(cli))
188 rootCmd.AddCommand(logsCmd(cli))
189 rootCmd.AddCommand(apiCmd(cli))
190 rootCmd.AddCommand(terraformCmd(cli))
191 rootCmd.AddCommand(eventStreamsCmd(cli))
192 rootCmd.AddCommand(networkACLCmd(cli))
193 rootCmd.AddCommand(tenantSettingsCmd(cli))
194 rootCmd.AddCommand(tokenExchangeCmd(cli))
195
196 // Keep completion at the bottom.
197 rootCmd.AddCommand(completionCmd(cli))
198}
199
200func contextWithCancel() context.Context {
201 ctx, cancel := context.WithCancel(context.Background())

Callers 2

GenerateDocsFunction · 0.85
ExecuteFunction · 0.85

Calls 15

loginCmdFunction · 0.85
logoutCmdFunction · 0.85
tenantsCmdFunction · 0.85
appsCmdFunction · 0.85
aculCmdFunction · 0.85
usersCmdFunction · 0.85
rulesCmdFunction · 0.85
actionsCmdFunction · 0.85
apisCmdFunction · 0.85
rolesCmdFunction · 0.85
organizationsCmdFunction · 0.85
universalLoginCmdFunction · 0.85

Tested by

no test coverage detected