diff --git a/cmd/project.go b/cmd/project.go index adcc5dc0..3ea57b22 100644 --- a/cmd/project.go +++ b/cmd/project.go @@ -123,10 +123,11 @@ func init() { updateProjectCmd.Flags().StringVarP(&projectPatch.GitURL, "gitUrl", "g", "", "GitURL of the project") updateProjectCmd.Flags().StringVarP(&projectPatch.PrivateKey, "privateKey", "I", "", "Private key to use for the project") updateProjectCmd.Flags().StringVarP(&projectPatch.Subfolder, "subfolder", "s", "", "Set if the .lagoon.yml should be found in a subfolder useful if you have multiple Lagoon projects per Git Repository") - updateProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsTask, "activeSystemsTask", "T", "", "Which internal Lagoon System is responsible for tasks ") + updateProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsTask, "activeSystemsTask", "T", "", "Which internal Lagoon System is responsible for tasks") updateProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsDeploy, "activeSystemsDeploy", "D", "", "Which internal Lagoon System is responsible for deploying ") - updateProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsRemove, "activeSystemsRemove", "R", "", "Which internal Lagoon System is responsible for promoting") + updateProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsRemove, "activeSystemsRemove", "R", "", "Which internal Lagoon System is responsible for removing") updateProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsPromote, "activeSystemsPromote", "P", "", "Which internal Lagoon System is responsible for promoting") + updateProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsMisc, "activeSystemsMisc", "M", "", "Which internal Lagoon System is responsible for miscellaneous tasks") updateProjectCmd.Flags().StringVarP(&projectPatch.Branches, "branches", "b", "", "Which branches should be deployed") updateProjectCmd.Flags().StringVarP(&projectPatch.Name, "name", "N", "", "Change the name of the project by specifying a new name (careful!)") updateProjectCmd.Flags().StringVarP(&projectPatch.Pullrequests, "pullrequests", "m", "", "Which Pull Requests should be deployed") @@ -143,10 +144,11 @@ func init() { addProjectCmd.Flags().StringVarP(&projectPatch.GitURL, "gitUrl", "g", "", "GitURL of the project") addProjectCmd.Flags().StringVarP(&projectPatch.PrivateKey, "privateKey", "I", "", "Private key to use for the project") addProjectCmd.Flags().StringVarP(&projectPatch.Subfolder, "subfolder", "s", "", "Set if the .lagoon.yml should be found in a subfolder useful if you have multiple Lagoon projects per Git Repository") - addProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsTask, "activeSystemsTask", "T", "", "Which internal Lagoon System is responsible for tasks ") + addProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsTask, "activeSystemsTask", "T", "", "Which internal Lagoon System is responsible for tasks") addProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsDeploy, "activeSystemsDeploy", "D", "", "Which internal Lagoon System is responsible for deploying ") - addProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsRemove, "activeSystemsRemove", "R", "", "Which internal Lagoon System is responsible for promoting") + addProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsRemove, "activeSystemsRemove", "R", "", "Which internal Lagoon System is responsible for removing") addProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsPromote, "activeSystemsPromote", "P", "", "Which internal Lagoon System is responsible for promoting") + addProjectCmd.Flags().StringVarP(&projectPatch.ActiveSystemsMisc, "activeSystemsMisc", "M", "", "Which internal Lagoon System is responsible for miscellaneous tasks") addProjectCmd.Flags().StringVarP(&projectPatch.Branches, "branches", "b", "", "Which branches should be deployed") addProjectCmd.Flags().StringVarP(&projectPatch.Pullrequests, "pullrequests", "m", "", "Which Pull Requests should be deployed") addProjectCmd.Flags().StringVarP(&projectPatch.ProductionEnvironment, "productionEnvironment", "E", "", "Which environment(the name) should be marked as the production environment") diff --git a/docs/commands/lagoon_add_project.md b/docs/commands/lagoon_add_project.md index e81e4587..662358ab 100644 --- a/docs/commands/lagoon_add_project.md +++ b/docs/commands/lagoon_add_project.md @@ -14,9 +14,10 @@ lagoon add project [flags] ``` -D, --activeSystemsDeploy string Which internal Lagoon System is responsible for deploying + -M, --activeSystemsMisc string Which internal Lagoon System is responsible for miscellaneous tasks -P, --activeSystemsPromote string Which internal Lagoon System is responsible for promoting - -R, --activeSystemsRemove string Which internal Lagoon System is responsible for promoting - -T, --activeSystemsTask string Which internal Lagoon System is responsible for tasks + -R, --activeSystemsRemove string Which internal Lagoon System is responsible for removing + -T, --activeSystemsTask string Which internal Lagoon System is responsible for tasks -a, --autoIdle int Auto idle setting of the project -b, --branches string Which branches should be deployed -L, --developmentEnvironmentsLimit int How many environments can be deployed at one time diff --git a/docs/commands/lagoon_update_project.md b/docs/commands/lagoon_update_project.md index e92c16cf..01e07087 100644 --- a/docs/commands/lagoon_update_project.md +++ b/docs/commands/lagoon_update_project.md @@ -14,9 +14,10 @@ lagoon update project [flags] ``` -D, --activeSystemsDeploy string Which internal Lagoon System is responsible for deploying + -M, --activeSystemsMisc string Which internal Lagoon System is responsible for miscellaneous tasks -P, --activeSystemsPromote string Which internal Lagoon System is responsible for promoting - -R, --activeSystemsRemove string Which internal Lagoon System is responsible for promoting - -T, --activeSystemsTask string Which internal Lagoon System is responsible for tasks + -R, --activeSystemsRemove string Which internal Lagoon System is responsible for removing + -T, --activeSystemsTask string Which internal Lagoon System is responsible for tasks -a, --autoIdle int Auto idle setting of the project -b, --branches string Which branches should be deployed -L, --developmentEnvironmentsLimit int How many environments can be deployed at one time diff --git a/pkg/api/types.go b/pkg/api/types.go index 1074d313..64c31b72 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -233,6 +233,7 @@ type Project struct { ActiveSystemsDeploy string `json:"activeSystemsDeploy,omitempty"` ActiveSystemsRemove string `json:"activeSystemsRemove,omitempty"` ActiveSystemsPromote string `json:"activeSystemsPromote,omitempty"` + ActiveSystemsMisc string `json:"activeSystemsMisc,omitempty"` Branches string `json:"branches,omitempty"` Pullrequests string `json:"pullrequests,omitempty"` ProductionEnvironment string `json:"productionEnvironment,omitempty"` @@ -259,6 +260,7 @@ type ProjectPatch struct { ActiveSystemsDeploy string `json:"activeSystemsDeploy,omitempty"` ActiveSystemsRemove string `json:"activeSystemsRemove,omitempty"` ActiveSystemsPromote string `json:"activeSystemsPromote,omitempty"` + ActiveSystemsMisc string `json:"activeSystemsMisc,omitempty"` Branches string `json:"branches,omitempty"` Pullrequests string `json:"pullrequests,omitempty"` ProductionEnvironment string `json:"productionEnvironment,omitempty"`