Skip to content

Commit

Permalink
Remove rules commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Feb 19, 2021
1 parent ae43f7f commit 5b7cfa7
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 724 deletions.
1 change: 0 additions & 1 deletion internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ var requiredScopes = []string{
"create:actions", "delete:actions", "read:actions", "update:actions",
"create:clients", "delete:clients", "read:clients", "update:clients",
"create:resource_servers", "delete:resource_servers", "read:resource_servers", "update:resource_servers",
"create:rules", "delete:rules", "read:rules", "update:rules",
"read:client_keys", "read:logs",
}

Expand Down
1 change: 0 additions & 1 deletion internal/auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ func TestRequiredScopes(t *testing.T) {
"actions",
"clients",
"resource_servers",
"rules",
}
crudPrefixes := []string{"create:", "delete:", "read:", "update:"}

Expand Down
4 changes: 0 additions & 4 deletions internal/auth0/auth0.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ type API struct {
Client ClientAPI
Connection ConnectionAPI
Log LogAPI
Rule RuleAPI
ResourceServer ResourceServerAPI
Role RoleAPI
CustomDomain CustomDomainAPI
User UserAPI
}

func NewAPI(m *management.Management) *API {
Expand All @@ -32,10 +30,8 @@ func NewAPI(m *management.Management) *API {
Connection: m.Connection,
Log: m.Log,
ResourceServer: m.ResourceServer,
Rule: m.Rule,
Role: m.Role,
CustomDomain: m.CustomDomain,
User: m.User,
}
}

Expand Down
25 changes: 0 additions & 25 deletions internal/auth0/rule.go

This file was deleted.

130 changes: 0 additions & 130 deletions internal/auth0/rule_mock.go

This file was deleted.

2 changes: 0 additions & 2 deletions internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,11 @@ func Execute() {
rootCmd.AddCommand(apisCmd(cli))
rootCmd.AddCommand(tryLoginCmd(cli))
rootCmd.AddCommand(logsCmd(cli))
rootCmd.AddCommand(rulesCmd(cli))
rootCmd.AddCommand(actionsCmd(cli))
rootCmd.AddCommand(connectionsCmd(cli))
rootCmd.AddCommand(rolesCmd(cli))
rootCmd.AddCommand(customDomainsCmd(cli))
rootCmd.AddCommand(getTokenCmd(cli))
rootCmd.AddCommand(usersCmd(cli))

// keep completion at the bottom:
rootCmd.AddCommand(completionCmd(cli))
Expand Down
Loading

0 comments on commit 5b7cfa7

Please sign in to comment.