diff --git a/cmd/add.go b/cmd/add.go index 5b24fa66..e8356c98 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -2,6 +2,7 @@ package cmd import ( "context" + "fmt" "github.com/spf13/cobra" "github.com/uselagoon/lagoon-cli/pkg/output" @@ -44,7 +45,7 @@ var addOrganizationCmd = &cobra.Command{ return err } if err := requiredInputCheck("Organization name", organizationName); err != nil { - return err + return fmt.Errorf("%v | Additional subcommands for deploytarget, group, project & user are available. --help for more information", err) } organizationFriendlyName, err := cmd.Flags().GetString("friendly-name") if err != nil { diff --git a/docs/commands/lagoon_add.md b/docs/commands/lagoon_add.md index b2a9a9f0..c3925b49 100644 --- a/docs/commands/lagoon_add.md +++ b/docs/commands/lagoon_add.md @@ -32,7 +32,7 @@ Add a project, or add notifications and variables to projects or environments * [lagoon add deploytarget-config](lagoon_add_deploytarget-config.md) - Add deploytarget config to a project * [lagoon add group](lagoon_add_group.md) - Add a group to lagoon * [lagoon add notification](lagoon_add_notification.md) - Add notifications or add notifications to projects -* [lagoon add organization](lagoon_add_organization.md) - Add an organization, or add a group/project to an organization +* [lagoon add organization](lagoon_add_organization.md) - Add an organization, or add a deploytarget/group/project/user to an organization * [lagoon add project](lagoon_add_project.md) - Add a new project to Lagoon * [lagoon add project-group](lagoon_add_project-group.md) - Add a project to a group in lagoon * [lagoon add user](lagoon_add_user.md) - Add a user to lagoon diff --git a/docs/commands/lagoon_add_organization.md b/docs/commands/lagoon_add_organization.md index db7c2765..1c46a335 100644 --- a/docs/commands/lagoon_add_organization.md +++ b/docs/commands/lagoon_add_organization.md @@ -1,11 +1,23 @@ ## lagoon add organization -Add an organization, or add a group/project to an organization +Add an organization, or add a deploytarget/group/project/user to an organization + +``` +lagoon add organization [flags] +``` ### Options ``` - -h, --help help for organization + --description string Description of the organization + --environment-quota int Environment quota for the organization + --friendly-name string Friendly name of the organization + --group-quota int Group quota for the organization + -h, --help help for organization + -O, --name string Name of the organization + --notification-quota int Notification quota for the organization + --project-quota int Project quota for the organization + --route-quota int Route quota for the organization ``` ### Options inherited from parent commands @@ -30,7 +42,6 @@ Add an organization, or add a group/project to an organization * [lagoon add](lagoon_add.md) - Add a project, or add notifications and variables to projects or environments * [lagoon add organization deploytarget](lagoon_add_organization_deploytarget.md) - Add a deploy target to an Organization * [lagoon add organization group](lagoon_add_organization_group.md) - Add a group to an Organization -* [lagoon add organization organization](lagoon_add_organization_organization.md) - Add a new organization to Lagoon * [lagoon add organization project](lagoon_add_organization_project.md) - Add a project to an Organization * [lagoon add organization user](lagoon_add_organization_user.md) - Add a user to an Organization diff --git a/docs/commands/lagoon_add_organization_deploytarget.md b/docs/commands/lagoon_add_organization_deploytarget.md index 12baa1b9..79d746a0 100644 --- a/docs/commands/lagoon_add_organization_deploytarget.md +++ b/docs/commands/lagoon_add_organization_deploytarget.md @@ -33,5 +33,5 @@ lagoon add organization deploytarget [flags] ### SEE ALSO -* [lagoon add organization](lagoon_add_organization.md) - Add an organization, or add a group/project to an organization +* [lagoon add organization](lagoon_add_organization.md) - Add an organization, or add a deploytarget/group/project/user to an organization diff --git a/docs/commands/lagoon_add_organization_group.md b/docs/commands/lagoon_add_organization_group.md index ed5fbffc..5b081871 100644 --- a/docs/commands/lagoon_add_organization_group.md +++ b/docs/commands/lagoon_add_organization_group.md @@ -34,5 +34,5 @@ lagoon add organization group [flags] ### SEE ALSO -* [lagoon add organization](lagoon_add_organization.md) - Add an organization, or add a group/project to an organization +* [lagoon add organization](lagoon_add_organization.md) - Add an organization, or add a deploytarget/group/project/user to an organization diff --git a/docs/commands/lagoon_add_organization_project.md b/docs/commands/lagoon_add_organization_project.md index 1b7815d5..a4b3bf33 100644 --- a/docs/commands/lagoon_add_organization_project.md +++ b/docs/commands/lagoon_add_organization_project.md @@ -53,5 +53,5 @@ lagoon add organization project [flags] ### SEE ALSO -* [lagoon add organization](lagoon_add_organization.md) - Add an organization, or add a group/project to an organization +* [lagoon add organization](lagoon_add_organization.md) - Add an organization, or add a deploytarget/group/project/user to an organization diff --git a/docs/commands/lagoon_add_organization_user.md b/docs/commands/lagoon_add_organization_user.md index e4c3c674..d241ae6c 100644 --- a/docs/commands/lagoon_add_organization_user.md +++ b/docs/commands/lagoon_add_organization_user.md @@ -34,5 +34,5 @@ lagoon add organization user [flags] ### SEE ALSO -* [lagoon add organization](lagoon_add_organization.md) - Add an organization, or add a group/project to an organization +* [lagoon add organization](lagoon_add_organization.md) - Add an organization, or add a deploytarget/group/project/user to an organization