Skip to content

Commit

Permalink
rename clients to apps
Browse files Browse the repository at this point in the history
  • Loading branch information
bright-poku committed Feb 19, 2021
1 parent 83c3010 commit e27f1ae
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/auth0-cli.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions internal/cli/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

func clientsCmd(cli *cli) *cobra.Command {
cmd := &cobra.Command{
Use: "clients",
Short: "Manage resources for clients",
Use: "apps",
Short: "Manage resources for apps",
}

cmd.SetUsageTemplate(resourceUsageTemplate())
Expand All @@ -27,15 +27,15 @@ func clientsCmd(cli *cli) *cobra.Command {
func clientsListCmd(cli *cli) *cobra.Command {
cmd := &cobra.Command{
Use: "list",
Short: "List your existing clients",
Short: "List your existing apps",
Long: `auth0 client list
Lists your existing clients. To create one try:
Lists your existing apps. To create one try:
auth0 clients create
auth0 apps create
`,
RunE: func(cmd *cobra.Command, args []string) error {
var list *management.ClientList
err := ansi.Spinner("Loading clients", func() error {
err := ansi.Spinner("Loading apps", func() error {
var err error
list, err = cli.api.Client.List()
return err
Expand Down Expand Up @@ -66,7 +66,7 @@ func clientsCreateCmd(cli *cli) *cobra.Command {
Short: "Create a new client (also know as application)",
Long: `Create a new client (or application):
auth0 clients create --name myapp --type [native|spa|regular|m2m]
auth0 apps create --name myapp --type [native|spa|regular|m2m]
- supported application type:
`,
Expand Down

0 comments on commit e27f1ae

Please sign in to comment.