Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use single dash for single letter flags #477

Merged
merged 1 commit into from
Aug 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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