Skip to content

Commit

Permalink
fix: Use single dash for single letter flags (#477)
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <[email protected]>

Signed-off-by: Josh Soref <[email protected]>
  • Loading branch information
jsoref authored Aug 19, 2022
1 parent 0aa3e99 commit 65a0e23
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions docs/auth0_actions_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ auth0 actions create [flags]
```
auth0 actions create
auth0 actions create --name myaction
auth0 actions create --n myaction --trigger post-login
auth0 actions create --n myaction -t post-login -d "lodash=4.0.0" -d "uuid=8.0.0"
auth0 actions create --n myaction -t post-login -d "lodash=4.0.0" -s "API_KEY=value" -s "SECRET=value
auth0 actions create -n myaction --trigger post-login
auth0 actions create -n myaction -t post-login -d "lodash=4.0.0" -d "uuid=8.0.0"
auth0 actions create -n myaction -t post-login -d "lodash=4.0.0" -s "API_KEY=value" -s "SECRET=value
```

### Options
Expand Down
6 changes: 3 additions & 3 deletions docs/auth0_actions_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ auth0 actions update [flags]
```
auth0 actions update <id>
auth0 actions update <id> --name myaction
auth0 actions update <id> --n myaction --trigger post-login
auth0 actions update <id> --n myaction -t post-login -d "lodash=4.0.0" -d "uuid=8.0.0"
auth0 actions update <id> --n myaction -t post-login -d "lodash=4.0.0" -s "API_KEY=value" -s "SECRET=value
auth0 actions update <id> -n myaction --trigger post-login
auth0 actions update <id> -n myaction -t post-login -d "lodash=4.0.0" -d "uuid=8.0.0"
auth0 actions update <id> -n myaction -t post-login -d "lodash=4.0.0" -s "API_KEY=value" -s "SECRET=value
```

### Options
Expand Down
6 changes: 3 additions & 3 deletions docs/auth0_orgs_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ auth0 orgs create [flags]
```
auth0 orgs create
auth0 orgs create --name myorganization
auth0 orgs create --n myorganization --display "My Organization"
auth0 orgs create --n myorganization -d "My Organization" -l "https://example.com/logo.png" -a "#635DFF" -b "#2A2E35"
auth0 orgs create --n myorganization -d "My Organization" -m "KEY=value" -m "OTHER_KEY=other_value"
auth0 orgs create -n myorganization --display "My Organization"
auth0 orgs create -n myorganization -d "My Organization" -l "https://example.com/logo.png" -a "#635DFF" -b "#2A2E35"
auth0 orgs create -n myorganization -d "My Organization" -m "KEY=value" -m "OTHER_KEY=other_value"
```

### Options
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_users_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ auth0 users create [flags]
auth0 users create
auth0 users create --name "John Doe"
auth0 users create -n "John Doe" --email [email protected]
auth0 users create -n "John Doe" --e [email protected] --connection "Username-Password-Authentication"
auth0 users create -n "John Doe" -e [email protected] --connection "Username-Password-Authentication"
```

### Options
Expand Down
12 changes: 6 additions & 6 deletions internal/cli/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ func createActionCmd(cli *cli) *cobra.Command {
Long: "Create a new action.",
Example: `auth0 actions create
auth0 actions create --name myaction
auth0 actions create --n myaction --trigger post-login
auth0 actions create --n myaction -t post-login -d "lodash=4.0.0" -d "uuid=8.0.0"
auth0 actions create --n myaction -t post-login -d "lodash=4.0.0" -s "API_KEY=value" -s "SECRET=value`,
auth0 actions create -n myaction --trigger post-login
auth0 actions create -n myaction -t post-login -d "lodash=4.0.0" -d "uuid=8.0.0"
auth0 actions create -n myaction -t post-login -d "lodash=4.0.0" -s "API_KEY=value" -s "SECRET=value`,
RunE: func(cmd *cobra.Command, args []string) error {
if err := actionName.Ask(cmd, &inputs.Name, nil); err != nil {
return err
Expand Down Expand Up @@ -250,9 +250,9 @@ func updateActionCmd(cli *cli) *cobra.Command {
Long: "Update an action.",
Example: `auth0 actions update <id>
auth0 actions update <id> --name myaction
auth0 actions update <id> --n myaction --trigger post-login
auth0 actions update <id> --n myaction -t post-login -d "lodash=4.0.0" -d "uuid=8.0.0"
auth0 actions update <id> --n myaction -t post-login -d "lodash=4.0.0" -s "API_KEY=value" -s "SECRET=value`,
auth0 actions update <id> -n myaction --trigger post-login
auth0 actions update <id> -n myaction -t post-login -d "lodash=4.0.0" -d "uuid=8.0.0"
auth0 actions update <id> -n myaction -t post-login -d "lodash=4.0.0" -s "API_KEY=value" -s "SECRET=value`,
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) > 0 {
inputs.ID = args[0]
Expand Down
6 changes: 3 additions & 3 deletions internal/cli/organizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ func createOrganizationCmd(cli *cli) *cobra.Command {
Long: "Create a new organization.",
Example: `auth0 orgs create
auth0 orgs create --name myorganization
auth0 orgs create --n myorganization --display "My Organization"
auth0 orgs create --n myorganization -d "My Organization" -l "https://example.com/logo.png" -a "#635DFF" -b "#2A2E35"
auth0 orgs create --n myorganization -d "My Organization" -m "KEY=value" -m "OTHER_KEY=other_value"`,
auth0 orgs create -n myorganization --display "My Organization"
auth0 orgs create -n myorganization -d "My Organization" -l "https://example.com/logo.png" -a "#635DFF" -b "#2A2E35"
auth0 orgs create -n myorganization -d "My Organization" -m "KEY=value" -m "OTHER_KEY=other_value"`,
RunE: func(cmd *cobra.Command, args []string) error {
if err := organizationName.Ask(cmd, &inputs.Name, nil); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func createUserCmd(cli *cli) *cobra.Command {
Example: `auth0 users create
auth0 users create --name "John Doe"
auth0 users create -n "John Doe" --email [email protected]
auth0 users create -n "John Doe" --e [email protected] --connection "Username-Password-Authentication"`,
auth0 users create -n "John Doe" -e [email protected] --connection "Username-Password-Authentication"`,
RunE: func(cmd *cobra.Command, args []string) error {
// Select from the available connection types
// Users API currently support database connections
Expand Down

0 comments on commit 65a0e23

Please sign in to comment.