Skip to content

Commit

Permalink
Merge pull request #166 from amazeeio/activesystemsmisc
Browse files Browse the repository at this point in the history
Support for activeSystemsMisc
  • Loading branch information
shreddedbacon committed Nov 12, 2020
2 parents 6fd3456 + 2c9da33 commit 361c30e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
10 changes: 6 additions & 4 deletions cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
5 changes: 3 additions & 2 deletions docs/commands/lagoon_add_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions docs/commands/lagoon_update_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down

0 comments on commit 361c30e

Please sign in to comment.