Skip to content

Commit

Permalink
fix: make email flag consistent (#361)
Browse files Browse the repository at this point in the history
* fix: make email flag consistent

* chore: update wording on router pattern flag
  • Loading branch information
shreddedbacon authored Jul 18, 2024
1 parent cc6d578 commit cf42a13
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions cmd/deploytarget.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ func init() {
addDeployTargetCmd.Flags().StringP("name", "", "", "Name of DeployTarget")
addDeployTargetCmd.Flags().StringP("console-url", "", "", "DeployTarget console URL")
addDeployTargetCmd.Flags().StringP("token", "", "", "DeployTarget token")
addDeployTargetCmd.Flags().StringP("router-pattern", "", "", "DeployTarget router-pattern")
addDeployTargetCmd.Flags().StringP("router-pattern", "", "", "Router pattern of the DeployTarget, e.g. '${service}-${environment}-${project}.lagoon.example.com'")
addDeployTargetCmd.Flags().StringP("friendly-name", "", "", "DeployTarget friendly name")
addDeployTargetCmd.Flags().StringP("cloud-provider", "", "", "DeployTarget cloud provider")
addDeployTargetCmd.Flags().StringP("cloud-region", "", "", "DeployTarget cloud region")
Expand All @@ -478,7 +478,7 @@ func init() {
updateDeployTargetCmd.Flags().UintP("id", "", 0, "ID of the DeployTarget")
updateDeployTargetCmd.Flags().StringP("console-url", "", "", "DeployTarget console URL")
updateDeployTargetCmd.Flags().StringP("token", "", "", "DeployTarget token")
updateDeployTargetCmd.Flags().StringP("router-pattern", "", "", "DeployTarget router-pattern")
updateDeployTargetCmd.Flags().StringP("router-pattern", "", "", "Router pattern of the DeployTarget, e.g. '${service}-${environment}-${project}.lagoon.example.com'")
updateDeployTargetCmd.Flags().StringP("friendly-name", "", "", "DeployTarget friendly name")
updateDeployTargetCmd.Flags().StringP("cloud-provider", "", "", "DeployTarget cloud provider")
updateDeployTargetCmd.Flags().StringP("cloud-region", "", "", "DeployTarget cloud region")
Expand Down
8 changes: 4 additions & 4 deletions cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ This query can take a long time to run if there are a lot of users.`,
if err != nil {
return err
}
emailAddress, err := cmd.Flags().GetString("email-address")
emailAddress, err := cmd.Flags().GetString("email")
if err != nil {
return err
}
Expand Down Expand Up @@ -677,7 +677,7 @@ var listUsersGroupsCmd = &cobra.Command{
if err != nil {
return err
}
emailAddress, err := cmd.Flags().GetString("email-address")
emailAddress, err := cmd.Flags().GetString("email")
if err != nil {
return err
}
Expand Down Expand Up @@ -1207,8 +1207,8 @@ func init() {
listCmd.AddCommand(listOrganizationGroupsCmd)
listCmd.AddCommand(listOrganizationDeployTargetsCmd)
listCmd.AddCommand(listOrganizationsCmd)
listAllUsersCmd.Flags().StringP("email-address", "E", "", "The email address of a user")
listUsersGroupsCmd.Flags().StringP("email-address", "E", "", "The email address of a user")
listAllUsersCmd.Flags().StringP("email", "E", "", "The email address of a user")
listUsersGroupsCmd.Flags().StringP("email", "E", "", "The email address of a user")
listCmd.Flags().BoolVarP(&listAllProjects, "all-projects", "", false, "All projects (if supported)")
listUsersCmd.Flags().StringVarP(&groupName, "name", "N", "", "Name of the group to list users in")
listGroupProjectsCmd.Flags().StringP("name", "N", "", "Name of the group to list projects in")
Expand Down
2 changes: 1 addition & 1 deletion docs/commands/lagoon_add_deploytarget.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ lagoon add deploytarget [flags]
-h, --help help for deploytarget
--id uint ID of the DeployTarget
--name string Name of DeployTarget
--router-pattern string DeployTarget router-pattern
--router-pattern string Router pattern of the DeployTarget, e.g. '${service}-${environment}-${project}.lagoon.example.com'
--ssh-host string DeployTarget ssh host
--ssh-port string DeployTarget ssh port
--token string DeployTarget token
Expand Down
4 changes: 2 additions & 2 deletions docs/commands/lagoon_list_all-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ lagoon list all-users [flags]
### Options

```
-E, --email-address string The email address of a user
-h, --help help for all-users
-E, --email string The email address of a user
-h, --help help for all-users
```

### Options inherited from parent commands
Expand Down
4 changes: 2 additions & 2 deletions docs/commands/lagoon_list_user-groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ lagoon list user-groups [flags]
### Options

```
-E, --email-address string The email address of a user
-h, --help help for user-groups
-E, --email string The email address of a user
-h, --help help for user-groups
```

### Options inherited from parent commands
Expand Down
2 changes: 1 addition & 1 deletion docs/commands/lagoon_update_deploytarget.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ lagoon update deploytarget [flags]
--friendly-name string DeployTarget friendly name
-h, --help help for deploytarget
--id uint ID of the DeployTarget
--router-pattern string DeployTarget router-pattern
--router-pattern string Router pattern of the DeployTarget, e.g. '${service}-${environment}-${project}.lagoon.example.com'
--ssh-host string DeployTarget ssh host
--ssh-port string DeployTarget ssh port
--token string DeployTarget token
Expand Down

0 comments on commit cf42a13

Please sign in to comment.