Skip to content

Commit

Permalink
Adds factsUi and ProblemsUi to update project command (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
bomoko authored Nov 8, 2022
1 parent d8bdc73 commit fd6e4cb
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 98 deletions.
5 changes: 5 additions & 0 deletions cmd/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ var projectStorageCalc int
var projectDevelopmentEnvironmentsLimit int
var projectOpenshift int
var projectDeploymentsDisabled int
var factsUi int
var problemsUi int

func parseProjectFlags(flags pflag.FlagSet) api.ProjectPatch {
configMap := make(map[string]interface{})
Expand Down Expand Up @@ -382,6 +384,9 @@ func init() {
updateProjectCmd.Flags().IntVarP(&projectOpenshift, "openshift", "S", 0, "Reference to OpenShift Object this Project should be deployed to")
updateProjectCmd.Flags().IntVarP(&projectDeploymentsDisabled, "deploymentsDisabled", "", 0, "Admin only flag for disabling deployments on a project, 1 to disable deployments, 0 to enable")

updateProjectCmd.Flags().IntVarP(&factsUi, "factsUi", "", 0, "Enables the Lagoon insights Facts tab in the UI. Set to 1 to enable, 0 to disable")
updateProjectCmd.Flags().IntVarP(&problemsUi, "problemsUi", "", 0, "Enables the Lagoon insights Problems tab in the UI. Set to 1 to enable, 0 to disable")

addProjectCmd.Flags().StringVarP(&jsonPatch, "json", "j", "", "JSON string to patch")

addProjectCmd.Flags().StringVarP(&projectPatch.GitURL, "gitUrl", "g", "", "GitURL of the project")
Expand Down
183 changes: 92 additions & 91 deletions internal/mock/mock_importer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fd6e4cb

Please sign in to comment.