From d1bde41e121811b50a7b91a9984790f7dd456c38 Mon Sep 17 00:00:00 2001 From: cgoodwin90 Date: Fri, 21 Jun 2024 12:07:44 +1000 Subject: [PATCH] Initial commit --- .gitignore | 1 + Makefile | 52 ++++++- cmd/config.go | 16 ++- cmd/deploy.go | 49 ++++--- cmd/deploytarget.go | 21 +-- cmd/deploytargetconfig.go | 19 ++- cmd/environment.go | 15 +- cmd/environment_test.go | 80 +++++++++++ cmd/get.go | 26 ++-- cmd/groups.go | 22 +-- cmd/import.go | 10 +- cmd/list.go | 87 +++++++---- cmd/login.go | 63 ++++++-- cmd/logs.go | 2 +- cmd/notificationsemail.go | 21 ++- cmd/notificationsrocketchat.go | 21 ++- cmd/notificationsslack.go | 21 ++- cmd/notificationsteams.go | 21 ++- cmd/notificationswebhook.go | 21 ++- cmd/organization.go | 9 +- cmd/project.go | 52 ++++--- cmd/project_test.go | 111 ++++++++++++++ cmd/root.go | 6 +- cmd/ssh.go | 2 +- cmd/tasks.go | 21 ++- cmd/users.go | 30 ++-- cmd/variables.go | 8 +- cmd/whoami.go | 6 +- docs/commands/lagoon.md | 32 +++-- docs/commands/lagoon_add.md | 27 ++-- .../lagoon_add_deploytarget-config.md | 27 ++-- docs/commands/lagoon_add_deploytarget.md | 29 ++-- docs/commands/lagoon_add_group.md | 27 ++-- docs/commands/lagoon_add_notification.md | 27 ++-- .../commands/lagoon_add_notification_email.md | 27 ++-- .../lagoon_add_notification_microsoftteams.md | 27 ++-- .../lagoon_add_notification_project-email.md | 27 ++-- ...add_notification_project-microsoftteams.md | 27 ++-- ...oon_add_notification_project-rocketchat.md | 27 ++-- .../lagoon_add_notification_project-slack.md | 27 ++-- ...lagoon_add_notification_project-webhook.md | 27 ++-- .../lagoon_add_notification_rocketchat.md | 27 ++-- .../commands/lagoon_add_notification_slack.md | 27 ++-- .../lagoon_add_notification_webhook.md | 27 ++-- .../lagoon_add_organization-administrator.md | 27 ++-- .../lagoon_add_organization-deploytarget.md | 27 ++-- docs/commands/lagoon_add_organization.md | 27 ++-- docs/commands/lagoon_add_project-group.md | 27 ++-- docs/commands/lagoon_add_project.md | 31 ++-- docs/commands/lagoon_add_user-group.md | 27 ++-- docs/commands/lagoon_add_user-sshkey.md | 27 ++-- docs/commands/lagoon_add_user.md | 27 ++-- docs/commands/lagoon_completion.md | 27 ++-- docs/commands/lagoon_completion_bash.md | 27 ++-- docs/commands/lagoon_completion_fish.md | 27 ++-- docs/commands/lagoon_completion_powershell.md | 27 ++-- docs/commands/lagoon_completion_zsh.md | 27 ++-- docs/commands/lagoon_config.md | 27 ++-- docs/commands/lagoon_config_add.md | 44 +++--- docs/commands/lagoon_config_current.md | 27 ++-- docs/commands/lagoon_config_default.md | 27 ++-- docs/commands/lagoon_config_delete.md | 27 ++-- docs/commands/lagoon_config_feature.md | 27 ++-- docs/commands/lagoon_config_lagoon-version.md | 27 ++-- docs/commands/lagoon_config_list.md | 27 ++-- docs/commands/lagoon_delete.md | 27 ++-- .../lagoon_delete_deploytarget-config.md | 27 ++-- docs/commands/lagoon_delete_deploytarget.md | 29 ++-- docs/commands/lagoon_delete_environment.md | 27 ++-- docs/commands/lagoon_delete_group.md | 27 ++-- docs/commands/lagoon_delete_notification.md | 27 ++-- .../lagoon_delete_notification_email.md | 27 ++-- ...goon_delete_notification_microsoftteams.md | 27 ++-- ...agoon_delete_notification_project-email.md | 27 ++-- ...ete_notification_project-microsoftteams.md | 27 ++-- ..._delete_notification_project-rocketchat.md | 27 ++-- ...agoon_delete_notification_project-slack.md | 27 ++-- ...oon_delete_notification_project-webhook.md | 27 ++-- .../lagoon_delete_notification_rocketchat.md | 27 ++-- .../lagoon_delete_notification_slack.md | 27 ++-- .../lagoon_delete_notification_webhook.md | 27 ++-- ...agoon_delete_organization-administrator.md | 27 ++-- ...lagoon_delete_organization-deploytarget.md | 27 ++-- .../lagoon_delete_organization-project.md | 27 ++-- docs/commands/lagoon_delete_organization.md | 27 ++-- docs/commands/lagoon_delete_project-group.md | 27 ++-- .../lagoon_delete_project-metadata.md | 27 ++-- docs/commands/lagoon_delete_project.md | 27 ++-- docs/commands/lagoon_delete_user-group.md | 27 ++-- docs/commands/lagoon_delete_user-sshkey.md | 27 ++-- docs/commands/lagoon_delete_user.md | 27 ++-- docs/commands/lagoon_delete_variable.md | 27 ++-- docs/commands/lagoon_deploy.md | 27 ++-- docs/commands/lagoon_deploy_branch.md | 31 ++-- docs/commands/lagoon_deploy_latest.md | 29 ++-- docs/commands/lagoon_deploy_promote.md | 29 ++-- docs/commands/lagoon_deploy_pullrequest.md | 45 +++--- docs/commands/lagoon_export.md | 27 ++-- docs/commands/lagoon_get.md | 27 ++-- docs/commands/lagoon_get_all-user-sshkeys.md | 27 ++-- docs/commands/lagoon_get_backup.md | 27 ++-- docs/commands/lagoon_get_deployment.md | 27 ++-- docs/commands/lagoon_get_environment.md | 27 ++-- docs/commands/lagoon_get_organization.md | 27 ++-- docs/commands/lagoon_get_project-key.md | 27 ++-- docs/commands/lagoon_get_project-metadata.md | 27 ++-- docs/commands/lagoon_get_project.md | 27 ++-- docs/commands/lagoon_get_task-by-id.md | 27 ++-- docs/commands/lagoon_get_token.md | 27 ++-- docs/commands/lagoon_get_user-sshkeys.md | 27 ++-- docs/commands/lagoon_import.md | 35 ++--- docs/commands/lagoon_kibana.md | 27 ++-- docs/commands/lagoon_list.md | 27 ++-- docs/commands/lagoon_list_all-users.md | 27 ++-- docs/commands/lagoon_list_backups.md | 27 ++-- docs/commands/lagoon_list_deployments.md | 27 ++-- .../lagoon_list_deploytarget-configs.md | 27 ++-- docs/commands/lagoon_list_deploytargets.md | 29 ++-- docs/commands/lagoon_list_environments.md | 27 ++-- docs/commands/lagoon_list_group-projects.md | 27 ++-- docs/commands/lagoon_list_group-users.md | 29 ++-- docs/commands/lagoon_list_groups.md | 27 ++-- docs/commands/lagoon_list_invokable-tasks.md | 27 ++-- docs/commands/lagoon_list_notification.md | 27 ++-- .../lagoon_list_notification_email.md | 27 ++-- ...lagoon_list_notification_microsoftteams.md | 27 ++-- .../lagoon_list_notification_project-email.md | 27 ++-- ...ist_notification_project-microsoftteams.md | 27 ++-- ...on_list_notification_project-rocketchat.md | 27 ++-- .../lagoon_list_notification_project-slack.md | 27 ++-- ...agoon_list_notification_project-webhook.md | 27 ++-- .../lagoon_list_notification_rocketchat.md | 27 ++-- .../lagoon_list_notification_slack.md | 27 ++-- .../lagoon_list_notification_webhook.md | 27 ++-- .../lagoon_list_organization-deploytargets.md | 27 ++-- .../lagoon_list_organization-groups.md | 27 ++-- .../lagoon_list_organization-projects.md | 27 ++-- .../lagoon_list_organization-users.md | 27 ++-- docs/commands/lagoon_list_organizations.md | 27 ++-- docs/commands/lagoon_list_project-groups.md | 27 ++-- .../lagoon_list_projects-by-metadata.md | 27 ++-- docs/commands/lagoon_list_projects.md | 27 ++-- docs/commands/lagoon_list_tasks.md | 27 ++-- docs/commands/lagoon_list_user-groups.md | 27 ++-- docs/commands/lagoon_list_variables.md | 27 ++-- docs/commands/lagoon_login.md | 27 ++-- docs/commands/lagoon_logs.md | 42 ++++++ docs/commands/lagoon_raw.md | 27 ++-- docs/commands/lagoon_reset-password.md | 27 ++-- docs/commands/lagoon_retrieve.md | 27 ++-- docs/commands/lagoon_retrieve_backup.md | 27 ++-- docs/commands/lagoon_run.md | 27 ++-- docs/commands/lagoon_run_activestandby.md | 27 ++-- docs/commands/lagoon_run_custom.md | 27 ++-- docs/commands/lagoon_run_drush-archivedump.md | 27 ++-- docs/commands/lagoon_run_drush-cacheclear.md | 27 ++-- docs/commands/lagoon_run_drush-sqldump.md | 27 ++-- docs/commands/lagoon_run_invoke.md | 27 ++-- docs/commands/lagoon_ssh.md | 27 ++-- docs/commands/lagoon_update.md | 27 ++-- .../lagoon_update_deploytarget-config.md | 27 ++-- docs/commands/lagoon_update_deploytarget.md | 29 ++-- docs/commands/lagoon_update_environment.md | 29 ++-- docs/commands/lagoon_update_notification.md | 27 ++-- .../lagoon_update_notification_email.md | 27 ++-- ...goon_update_notification_microsoftteams.md | 27 ++-- .../lagoon_update_notification_rocketchat.md | 27 ++-- .../lagoon_update_notification_slack.md | 27 ++-- .../lagoon_update_notification_webhook.md | 27 ++-- docs/commands/lagoon_update_organization.md | 27 ++-- .../lagoon_update_project-metadata.md | 27 ++-- docs/commands/lagoon_update_project.md | 31 ++-- docs/commands/lagoon_update_user.md | 27 ++-- docs/commands/lagoon_update_variable.md | 27 ++-- docs/commands/lagoon_upload.md | 27 ++-- docs/commands/lagoon_upload_task-files.md | 27 ++-- docs/commands/lagoon_version.md | 27 ++-- docs/commands/lagoon_web.md | 27 ++-- docs/commands/lagoon_whoami.md | 27 ++-- internal/lagoon/config.go | 19 +-- local-dev/config.tpl | 8 ++ pkg/output/main.go | 72 +++++++--- pkg/output/main_test.go | 135 +++++++----------- 183 files changed, 3070 insertions(+), 2145 deletions(-) create mode 100644 cmd/environment_test.go create mode 100644 cmd/project_test.go create mode 100644 docs/commands/lagoon_logs.md create mode 100644 local-dev/config.tpl diff --git a/.gitignore b/.gitignore index 84f7e26b..b9f8d986 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ site/ /builds/lagoon-cli-* +./temp_config.yaml diff --git a/Makefile b/Makefile index cdc78c0a..691c3fe1 100644 --- a/Makefile +++ b/Makefile @@ -22,12 +22,12 @@ all-docker-darwin: deps-docker test-docker build-docker-darwin gen: deps GO111MODULE=on $(GOCMD) generate ./... -deps: +deps: GO111MODULE=on ${GOCMD} get -v test: gen GO111MODULE=on $(GOCMD) fmt ./... GO111MODULE=on $(GOCMD) vet ./... - GO111MODULE=on $(GOCMD) test -v ./... + GO111MODULE=on $(GOCMD) test -v -run '^Test(A[^P].*|[^A].*)' ./... clean: $(GOCMD) clean @@ -40,7 +40,7 @@ build-darwin: test GO111MODULE=on CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(GOCMD) build -ldflags '${LDFLAGS} -X "${PKG}/cmd.lagoonCLIBuildGoVersion=${GO_VER}"' -o builds/lagoon-cli-${VERSION}-darwin-amd64 -v docs: test - LAGOON_GEN_DOCS=true GO111MODULE=on $(GOCMD) run main.go --docs + LAGOON_GEN_DOCS=true GO111MODULE=on $(GOCMD) run main.go --docs tidy: GO111MODULE=on $(GOCMD) mod tidy @@ -96,20 +96,60 @@ install-linux: install-darwin: cp builds/lagoon-cli-${VERSION}-darwin-amd64 ${ARTIFACT_DESTINATION}/lagoon -release-patch: +release-patch: $(eval VERSION=$(shell ${PWD}/increment_ver.sh -p $(shell git describe --abbrev=0 --tags))) git tag $(VERSION) mkdocs gh-deploy git push $(GIT_ORIGIN) main --tags -release-minor: +release-minor: $(eval VERSION=$(shell ${PWD}/increment_ver.sh -m $(shell git describe --abbrev=0 --tags))) git tag $(VERSION) mkdocs gh-deploy git push $(GIT_ORIGIN) main --tags -release-major: +release-major: $(eval VERSION=$(shell ${PWD}/increment_ver.sh -M $(shell git describe --abbrev=0 --tags))) git tag $(VERSION) mkdocs gh-deploy git push $(GIT_ORIGIN) main --tags + +api-tests: gen + GO111MODULE=on $(GOCMD) fmt ./... + GO111MODULE=on $(GOCMD) vet ./... + GO111MODULE=on $(GOCMD) test -v -run '^(TestAPI)' ./... + +# upstream +CI_BUILD_TAG ?= lagoon-cli +CORE_REPO=https://github.com/uselagoon/lagoon.git +CORE_TREEISH=main + +TEMP_CONFIG_FILE := temp_config.yaml + +generate-config: + TOKEN=$(TOKEN) \ + envsubst < local-dev/config.tpl > $(TEMP_CONFIG_FILE) + +clean-config: + @rm -f $(TEMP_CONFIG_FILE) + +# TODO - Update with UI-PR#266 +.PHONY: test-with-api +test-with-api: + export LAGOON_CORE=$$(mktemp -d ./lagoon-core.XXX) \ + && git clone $(CORE_REPO) "$$LAGOON_CORE" \ + && cd "$$LAGOON_CORE" \ + && git checkout $(CORE_TREEISH) \ + && TOKEN=$$(docker run -e JWTSECRET=super-secret-string \ + -e JWTAUDIENCE=api.dev \ + -e JWTUSER=localadmin \ + uselagoon/tests \ + python3 /ansible/tasks/api/admin_token.py) \ + && IMAGE_REPO=uselagoon docker compose -p $(CI_BUILD_TAG) --compatibility up -d api api-db actions-handler local-api-data-watcher-pusher keycloak keycloak-db broker api-redis logs2notifications local-minio mailhog \ + && $(MAKE) CI_BUILD_TAG=$(CI_BUILD_TAG) wait-for-keycloak \ + && cd .. \ + && $(MAKE) generate-config TOKEN=$$TOKEN \ + && $(MAKE) api-tests \ + && $(MAKE) clean-config \ + && cd "$$LAGOON_CORE" \ + && $(MAKE) CI_BUILD_TAG=$(CI_BUILD_TAG) down diff --git a/cmd/config.go b/cmd/config.go index aee6e242..dd52b0fb 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -129,10 +129,11 @@ var configLagoonsCmd = &cobra.Command{ tableHeader = append(tableHeader, "Kibana-URL") } tableHeader = append(tableHeader, "SSH-Key") - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: tableHeader, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -164,11 +165,19 @@ var configAddCmd = &cobra.Command{ if lagoonConfig.SSHKey != "" { lc.SSHKey = lagoonConfig.SSHKey } + // check identity files flag + identityFiles, err := cmd.Flags().GetStringSlice("publickey-identityfile") + if err != nil { + return err + } + if identityFiles != nil { + lc.PublicKeyIdentities = identityFiles + } lagoonCLIConfig.Lagoons[lagoonConfig.Lagoon] = lc if err := writeLagoonConfig(&lagoonCLIConfig, filepath.Join(configFilePath, configName+configExtension)); err != nil { return fmt.Errorf("couldn't write config: %v", err) } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Name", "GraphQL", @@ -190,6 +199,7 @@ var configAddCmd = &cobra.Command{ }, }, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } else { return fmt.Errorf("must have Hostname, Port, and GraphQL endpoint") } @@ -314,6 +324,8 @@ func init() { "Lagoon Kibana URL (https://logs.amazeeio.cloud)") configAddCmd.Flags().StringVarP(&lagoonSSHKey, "ssh-key", "", "", "SSH Key to use for this cluster for generating tokens") + configAddCmd.Flags().StringSliceP("publickey-identityfile", "", []string{}, + "Specific public key identity files to use when doing ssh-agent checks (support multiple)") configLagoonsCmd.Flags().BoolVarP(&fullConfigList, "show-full", "", false, "Show full config output when listing Lagoon configurations") configFeatureSwitch.Flags().StringVarP(&updateCheck, "disable-update-check", "", "", diff --git a/cmd/deploy.go b/cmd/deploy.go index c8b771e4..ed6126b9 100644 --- a/cmd/deploy.go +++ b/cmd/deploy.go @@ -3,6 +3,7 @@ package cmd import ( "context" "fmt" + "github.com/uselagoon/lagoon-cli/pkg/output" "strconv" lclient "github.com/uselagoon/machinery/api/lagoon/client" @@ -41,7 +42,7 @@ use 'lagoon deploy latest' instead`, if err != nil { return err } - returnData, err := cmd.Flags().GetBool("returnData") + returnData, err := cmd.Flags().GetBool("returndata") if err != nil { return err } @@ -80,7 +81,8 @@ use 'lagoon deploy latest' instead`, if err != nil { return err } - fmt.Println(result.DeployEnvironmentBranch) + resultData := output.Result{Result: result.DeployEnvironmentBranch} + output.RenderResult(resultData, outputOptions, cmd) } return nil }, @@ -107,7 +109,7 @@ var deployPromoteCmd = &cobra.Command{ if err != nil { return err } - returnData, err := cmd.Flags().GetBool("returnData") + returnData, err := cmd.Flags().GetBool("returndata") if err != nil { return err } @@ -143,7 +145,8 @@ var deployPromoteCmd = &cobra.Command{ if err != nil { return err } - fmt.Println(result.DeployEnvironmentPromote) + resultData := output.Result{Result: result.DeployEnvironmentPromote} + output.RenderResult(resultData, outputOptions, cmd) } return nil }, @@ -161,7 +164,7 @@ This environment should already exist in lagoon. It is analogous with the 'Deplo }, RunE: func(cmd *cobra.Command, args []string) error { - returnData, err := cmd.Flags().GetBool("returnData") + returnData, err := cmd.Flags().GetBool("returndata") if err != nil { return err } @@ -204,7 +207,8 @@ This environment should already exist in lagoon. It is analogous with the 'Deplo if err != nil { return err } - fmt.Println(result.DeployEnvironmentLatest) + resultData := output.Result{Result: result.DeployEnvironmentLatest} + output.RenderResult(resultData, outputOptions, cmd) } return nil }, @@ -233,23 +237,23 @@ This pullrequest may not already exist as an environment in lagoon.`, if err != nil { return err } - baseBranchName, err := cmd.Flags().GetString("baseBranchName") + baseBranchName, err := cmd.Flags().GetString("base-branch-name") if err != nil { return err } - baseBranchRef, err := cmd.Flags().GetString("baseBranchRef") + baseBranchRef, err := cmd.Flags().GetString("base-branch-ref") if err != nil { return err } - headBranchName, err := cmd.Flags().GetString("headBranchName") + headBranchName, err := cmd.Flags().GetString("head-branch-name") if err != nil { return err } - headBranchRef, err := cmd.Flags().GetString("headBranchRef") + headBranchRef, err := cmd.Flags().GetString("head-branch-ref") if err != nil { return err } - if err := requiredInputCheck("Project name", cmdProjectName, "Pullrequest title", prTitle, "Pullrequest number", strconv.Itoa(int(prNumber)), "baseBranchName", baseBranchName, "baseBranchRef", baseBranchRef, "headBranchName", headBranchName, "headBranchRef", headBranchRef); err != nil { + if err := requiredInputCheck("Project name", cmdProjectName, "Pullrequest title", prTitle, "Pullrequest number", strconv.Itoa(int(prNumber)), "Base branch name", baseBranchName, "Base branch ref", baseBranchRef, "Head branch name", headBranchName, "Head branch ref", headBranchRef); err != nil { return err } buildVarStrings, err := cmd.Flags().GetStringArray("buildvar") @@ -261,7 +265,7 @@ This pullrequest may not already exist as an environment in lagoon.`, return err } - returnData, err := cmd.Flags().GetBool("returnData") + returnData, err := cmd.Flags().GetBool("returndata") if err != nil { return err } @@ -291,7 +295,8 @@ This pullrequest may not already exist as an environment in lagoon.`, if err != nil { return err } - fmt.Println(result.DeployEnvironmentPullrequest) + resultData := output.Result{Result: result.DeployEnvironmentPullrequest} + output.RenderResult(resultData, outputOptions, cmd) } return nil }, @@ -304,25 +309,25 @@ func init() { deployCmd.AddCommand(deployPullrequestCmd) const returnDataUsageText = "Returns the build name instead of success text" - deployLatestCmd.Flags().Bool("returnData", false, returnDataUsageText) + deployLatestCmd.Flags().Bool("returndata", false, returnDataUsageText) deployLatestCmd.Flags().StringArray("buildvar", []string{}, "Add one or more build variables to deployment (--buildvar KEY1=VALUE1 [--buildvar KEY2=VALUE2])") deployBranchCmd.Flags().StringP("branch", "b", "", "Branch name to deploy") - deployBranchCmd.Flags().StringP("branchRef", "r", "", "Branch ref to deploy") - deployBranchCmd.Flags().Bool("returnData", false, returnDataUsageText) + deployBranchCmd.Flags().StringP("branch-ref", "r", "", "Branch ref to deploy") + deployBranchCmd.Flags().Bool("returndata", false, returnDataUsageText) deployBranchCmd.Flags().StringArray("buildvar", []string{}, "Add one or more build variables to deployment (--buildvar KEY1=VALUE1 [--buildvar KEY2=VALUE2])") deployPromoteCmd.Flags().StringP("destination", "d", "", "Destination environment name to create") deployPromoteCmd.Flags().StringP("source", "s", "", "Source environment name to use as the base to deploy from") - deployPromoteCmd.Flags().Bool("returnData", false, returnDataUsageText) + deployPromoteCmd.Flags().Bool("returndata", false, returnDataUsageText) deployPromoteCmd.Flags().StringArray("buildvar", []string{}, "Add one or more build variables to deployment (--buildvar KEY1=VALUE1 [--buildvar KEY2=VALUE2])") deployPullrequestCmd.Flags().StringP("title", "t", "", "Pullrequest title") deployPullrequestCmd.Flags().UintP("number", "n", 0, "Pullrequest number") - deployPullrequestCmd.Flags().StringP("baseBranchName", "N", "", "Pullrequest base branch name") - deployPullrequestCmd.Flags().StringP("baseBranchRef", "R", "", "Pullrequest base branch reference hash") - deployPullrequestCmd.Flags().StringP("headBranchName", "H", "", "Pullrequest head branch name") - deployPullrequestCmd.Flags().StringP("headBranchRef", "M", "", "Pullrequest head branch reference hash") - deployPullrequestCmd.Flags().Bool("returnData", false, returnDataUsageText) + deployPullrequestCmd.Flags().StringP("base-branch-name", "N", "", "Pullrequest base branch name") + deployPullrequestCmd.Flags().StringP("base-branch-ref", "R", "", "Pullrequest base branch reference hash") + deployPullrequestCmd.Flags().StringP("head-branch-name", "H", "", "Pullrequest head branch name") + deployPullrequestCmd.Flags().StringP("head-branch-ref", "M", "", "Pullrequest head branch reference hash") + deployPullrequestCmd.Flags().Bool("returndata", false, returnDataUsageText) deployPullrequestCmd.Flags().StringArray("buildvar", []string{}, "Add one or more build variables to deployment (--buildvar KEY1=VALUE1 [--buildvar KEY2=VALUE2])") } diff --git a/cmd/deploytarget.go b/cmd/deploytarget.go index b4f9d27e..791a94a8 100644 --- a/cmd/deploytarget.go +++ b/cmd/deploytarget.go @@ -16,7 +16,7 @@ var addDeployTargetCmd = &cobra.Command{ Use: "deploytarget", Aliases: []string{"dt"}, Short: "Add a DeployTarget to lagoon", - Long: "Add a DeployTarget (kubernetes or openshift) to lagoon, this requires admin level permissions", + Long: "Add a Deploytarget(Kubernetes) to lagoon, this requires admin level permissions", PreRunE: func(_ *cobra.Command, _ []string) error { return validateTokenE(cmdLagoon) }, @@ -120,7 +120,7 @@ var addDeployTargetCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", addDeployTargetResponse.Created)), returnNonEmptyString(fmt.Sprintf("%v", addDeployTargetResponse.MonitoringConfig)), }) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -138,6 +138,7 @@ var addDeployTargetCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -147,7 +148,7 @@ var updateDeployTargetCmd = &cobra.Command{ Use: "deploytarget", Aliases: []string{"dt"}, Short: "Update a DeployTarget in lagoon", - Long: "Update a DeployTarget (kubernetes or openshift) in lagoon, this requires admin level permissions", + Long: "Update a Deploytarget(Kubernetes) in lagoon, this requires admin level permissions", PreRunE: func(_ *cobra.Command, _ []string) error { return validateTokenE(cmdLagoon) }, @@ -252,7 +253,7 @@ var updateDeployTargetCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", updateDeployTargetResponse.Created)), returnNonEmptyString(fmt.Sprintf("%v", updateDeployTargetResponse.MonitoringConfig)), }) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -270,6 +271,7 @@ var updateDeployTargetCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -279,7 +281,7 @@ var deleteDeployTargetCmd = &cobra.Command{ Use: "deploytarget", Aliases: []string{"dt"}, Short: "Delete a DeployTarget from lagoon", - Long: "Delete a DeployTarget (kubernetes or openshift) from lagoon, this requires admin level permissions", + Long: "Delete a Deploytarget(Kubernetes) from lagoon, this requires admin level permissions", PreRunE: func(_ *cobra.Command, _ []string) error { return validateTokenE(cmdLagoon) }, @@ -319,7 +321,8 @@ var deleteDeployTargetCmd = &cobra.Command{ resultData := output.Result{ Result: deleteDeployTargetResponse.DeleteDeployTarget, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -383,7 +386,8 @@ var addDeployTargetToOrganizationCmd = &cobra.Command{ "Organization Name": deployTargetResponse.Name, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -447,7 +451,8 @@ var removeDeployTargetFromOrganizationCmd = &cobra.Command{ "Organization Name": organizationName, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, diff --git a/cmd/deploytargetconfig.go b/cmd/deploytargetconfig.go index cb4465f3..db7b5523 100644 --- a/cmd/deploytargetconfig.go +++ b/cmd/deploytargetconfig.go @@ -90,7 +90,7 @@ var addDeployTargetConfigCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", deployTargetConfig.DeployTarget.CloudProvider)), returnNonEmptyString(fmt.Sprintf("%v", deployTargetConfig.DeployTarget.CloudRegion)), }) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Weight", @@ -103,6 +103,7 @@ var addDeployTargetConfigCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -184,7 +185,7 @@ var updateDeployTargetConfigCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", deployTargetConfig.DeployTarget.CloudProvider)), returnNonEmptyString(fmt.Sprintf("%v", deployTargetConfig.DeployTarget.CloudRegion)), }) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Weight", @@ -197,6 +198,7 @@ var updateDeployTargetConfigCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -238,7 +240,7 @@ var deleteDeployTargetConfigCmd = &cobra.Command{ } if project.Name == "" { outputOptions.Error = fmt.Sprintf("No details for project '%s'", cmdProjectName) - output.RenderError(outputOptions.Error, outputOptions) + output.RenderError(outputOptions.Error, outputOptions, cmd) return nil } @@ -247,7 +249,11 @@ var deleteDeployTargetConfigCmd = &cobra.Command{ if err != nil { return err } - fmt.Println(result.DeleteDeployTargetConfig) + resultData := output.Result{ + Result: result.DeleteDeployTargetConfig, + } + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -286,7 +292,7 @@ var listDeployTargetConfigsCmd = &cobra.Command{ } if project.Name == "" { outputOptions.Error = fmt.Sprintf("No details for project '%s'", cmdProjectName) - output.RenderError(outputOptions.Error, outputOptions) + output.RenderError(outputOptions.Error, outputOptions, cmd) return nil } deployTargetConfigs, err := lagoon.GetDeployTargetConfigs(context.TODO(), int(project.ID), lc) @@ -306,7 +312,7 @@ var listDeployTargetConfigsCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", deployTargetConfig.DeployTarget.CloudRegion)), }) } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Weight", @@ -319,6 +325,7 @@ var listDeployTargetConfigsCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } diff --git a/cmd/environment.go b/cmd/environment.go index 7875b94f..bdd8a3e6 100644 --- a/cmd/environment.go +++ b/cmd/environment.go @@ -50,7 +50,8 @@ var deleteEnvCmd = &cobra.Command{ resultData := output.Result{ Result: environment.DeleteEnvironment, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -96,7 +97,7 @@ var updateEnvironmentCmd = &cobra.Command{ if err != nil { return err } - openShift, err := cmd.Flags().GetUint("deploytarget") + deploytarget, err := cmd.Flags().GetUint("deploytarget") if err != nil { return err } @@ -141,7 +142,7 @@ var updateEnvironmentCmd = &cobra.Command{ Route: nullStrCheck(route), Routes: nullStrCheck(routes), DeployTitle: nullStrCheck(deployTitle), - Openshift: nullUintCheck(openShift), + Openshift: nullUintCheck(deploytarget), } if environmentAutoIdleProvided { environmentFlags.AutoIdle = &environmentAutoIdle @@ -172,7 +173,8 @@ var updateEnvironmentCmd = &cobra.Command{ "Environment Name": result.Name, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -233,7 +235,7 @@ var listBackupsCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", backup.Restore.Status)), }) } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "BackupID", "Source", @@ -243,6 +245,7 @@ var listBackupsCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -313,7 +316,7 @@ func init() { updateEnvironmentCmd.Flags().String("route", "", "Update the route for the selected environment") updateEnvironmentCmd.Flags().String("routes", "", "Update the routes for the selected environment") updateEnvironmentCmd.Flags().UintVarP(&environmentAutoIdle, "auto-idle", "a", 1, "Auto idle setting of the environment") - updateEnvironmentCmd.Flags().UintP("deploytarget", "d", 0, "Reference to OpenShift Object this Environment should be deployed to") + updateEnvironmentCmd.Flags().UintP("deploytarget", "d", 0, "Reference to Deploytarget(Kubernetes) this Environment should be deployed to") updateEnvironmentCmd.Flags().String("environment-type", "", "Update the environment type - production | development") updateEnvironmentCmd.Flags().String("deploy-type", "", "Update the deploy type - branch | pullrequest | promote") } diff --git a/cmd/environment_test.go b/cmd/environment_test.go new file mode 100644 index 00000000..ce206b6d --- /dev/null +++ b/cmd/environment_test.go @@ -0,0 +1,80 @@ +package cmd + +import ( + "bytes" + "fmt" + "github.com/spf13/pflag" + "github.com/stretchr/testify/assert" + "testing" + + "github.com/spf13/cobra" +) + +func TestAPIEnvironmentCommands(t *testing.T) { + tests := []struct { + name string + cmdArgs []string + setupCmd func(*cobra.Command, pflag.FlagSet) + expectOut []string + expectErr bool + expectedErrString string + }{ + { + name: "List Backups", + cmdArgs: []string{"list", "backups", "--project=lagoon-demo", "--environment=main"}, + setupCmd: func(cmd *cobra.Command, flags pflag.FlagSet) { + cmd.AddCommand(listCmd) + listCmd.AddCommand(listBackupsCmd) + }, + expectOut: []string{"e2e1d31b4a7dfc1687f469b6673f6bf2c0aabee0cc6b3f1bdbde710a9bc6280f", "files", "e2e1d31b4a7dfc1687f469b6673f6bf2c0aabee0cc6b3f1bdbde710a9bc6280d", "mariadb"}, + expectErr: false, + }, + { + name: "Update Environment", + cmdArgs: []string{"update", "environment", "--project=lagoon-demo", "--environment=pr-175", "--auto-idle=0"}, + setupCmd: func(cmd *cobra.Command, flags pflag.FlagSet) { + cmd.AddCommand(updateCmd) + updateCmd.AddCommand(updateEnvironmentCmd) + }, + expectOut: []string{"success", "pr-175"}, + expectErr: false, + }, + { + name: "Delete Environment", + cmdArgs: []string{"delete", "environment", "--project=lagoon-demo", "--environment=pr-175", "--force"}, + setupCmd: func(cmd *cobra.Command, flags pflag.FlagSet) { + cmd.AddCommand(deleteCmd) + deleteCmd.AddCommand(deleteEnvCmd) + }, + expectOut: []string{"success"}, + expectErr: false, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + cmd := rootCmd + tt.cmdArgs = append(tt.cmdArgs, "--output-json", "--config-file=../temp_config.yaml") + cmd.SetArgs(tt.cmdArgs) + flags := pflag.FlagSet{} + tt.setupCmd(cmd, flags) + + var out bytes.Buffer + cmd.SetOut(&out) + cmd.SetErr(&out) + + err := cmd.Execute() + if err != nil && tt.expectErr { + assert.NotEmpty(t, err) + fmt.Println("err:", err) + return + } else if err != nil { + t.Fatalf("Error executing command: %v", err) + } + + for _, eo := range tt.expectOut { + assert.Contains(t, out.String(), eo) + } + + }) + } +} diff --git a/cmd/get.go b/cmd/get.go index bcccbe8c..50d4946b 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -60,7 +60,8 @@ var getProjectCmd = &cobra.Command{ if project.Name == "" { outputOptions.Error = fmt.Sprintf("No details for project '%s'\n", cmdProjectName) - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } @@ -112,7 +113,8 @@ var getProjectCmd = &cobra.Command{ Header: []string{"ID", "ProjectName", "GitURL", "Branches", "PullRequests", "ProductionRoute", "DevEnvironments", "DevEnvLimit", "ProductionEnv", "RouterPattern", "AutoIdle", "FactsUI", "ProblemsUI", "DeploymentsDisabled"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -163,7 +165,8 @@ This returns information about a deployment, the logs of this build can also be }, }, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } dataMain := output.Table{ @@ -188,7 +191,8 @@ This returns information about a deployment, the logs of this build can also be }, }, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -241,10 +245,11 @@ var getEnvironmentCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", environment.DeployHeadRef)), }) dataMain := output.Table{ - Header: []string{"ID", "EnvironmentName", "EnvironmentType", "DeployType", "Created", "OpenshiftProjectName", "Route", "Routes", "AutoIdle", "DeployTitle", "DeployBaseRef", "DeployHeadRef"}, + Header: []string{"ID", "EnvironmentName", "EnvironmentType", "DeployType", "Created", "Namespace", "Route", "Routes", "AutoIdle", "DeployTitle", "DeployBaseRef", "DeployHeadRef"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -294,14 +299,16 @@ var getProjectKeyCmd = &cobra.Command{ if len(dataMain.Data) == 0 { outputOptions.Error = fmt.Sprintf("No project-key for project '%s'", cmdProjectName) - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } if projectKey.PrivateKey != "" { dataMain.Header = append(dataMain.Header, "PrivateKey") } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -371,7 +378,8 @@ var getOrganizationCmd = &cobra.Command{ Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } diff --git a/cmd/groups.go b/cmd/groups.go index b1ac7c39..e59d12b4 100644 --- a/cmd/groups.go +++ b/cmd/groups.go @@ -89,7 +89,8 @@ var addGroupCmd = &cobra.Command{ if organizationName != "" { resultData.ResultData["Organization"] = organizationName } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -162,7 +163,8 @@ var addUserToGroupCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -213,7 +215,7 @@ var addProjectToGroupCmd = &cobra.Command{ } if len(project.Name) == 0 { outputOptions.Error = fmt.Sprintf("Project '%s' not found", cmdProjectName) - output.RenderError(outputOptions.Error, outputOptions) + output.RenderError(outputOptions.Error, outputOptions, cmd) return nil } _, err = lagoon.AddProjectToGroup(context.TODO(), projectGroup, lc) @@ -224,7 +226,8 @@ var addProjectToGroupCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -280,7 +283,8 @@ var deleteUserFromGroupCmd = &cobra.Command{ "id": result.ID, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -332,7 +336,7 @@ var deleteProjectFromGroupCmd = &cobra.Command{ } if len(project.Name) == 0 { outputOptions.Error = fmt.Sprintf("Project '%s' not found", cmdProjectName) - output.RenderError(outputOptions.Error, outputOptions) + output.RenderError(outputOptions.Error, outputOptions, cmd) return nil } @@ -345,7 +349,8 @@ var deleteProjectFromGroupCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -384,7 +389,8 @@ var deleteGroupCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, diff --git a/cmd/import.go b/cmd/import.go index 1a142b6a..3fda1329 100644 --- a/cmd/import.go +++ b/cmd/import.go @@ -30,7 +30,7 @@ You can get it to continue anyway with --keep-going. To disable any prompts, use if err != nil { return err } - openshiftID, err := cmd.Flags().GetUint("openshiftID") + deploytargetID, err := cmd.Flags().GetUint("deploytarget-id") if err != nil { return err } @@ -62,7 +62,7 @@ You can get it to continue anyway with --keep-going. To disable any prompts, use return fmt.Errorf("couldn't open file: %w", err) } - return lagoon.Import(context.TODO(), lc, file, keepGoing, openshiftID) + return lagoon.Import(context.TODO(), lc, file, keepGoing, deploytargetID) }, } @@ -136,9 +136,9 @@ func init() { "path to the file to import") importCmd.Flags().Bool("keep-going", false, "on error, just log and continue instead of aborting") - importCmd.Flags().Uint("openshiftID", 0, - "ID of the openshift to target for import") - for _, flag := range []string{"import-file", "openshiftID"} { + importCmd.Flags().Uint("deploytarget-id", 0, + "ID of the deploytarget to target for import") + for _, flag := range []string{"import-file", "deploytarget-id"} { if err := importCmd.MarkFlagRequired(flag); err != nil { panic(err) } diff --git a/cmd/list.go b/cmd/list.go index cbfbebe2..283807b7 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -77,8 +77,8 @@ var listProjectsCmd = &cobra.Command{ Header: []string{"ID", "ProjectName", "GitUrl", "ProductionEnvironment", "DevEnvironments"}, Data: data, } - - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -87,7 +87,7 @@ var listDeployTargetsCmd = &cobra.Command{ Use: "deploytargets", Aliases: []string{"deploytarget", "dt"}, Short: "List all DeployTargets in Lagoon", - Long: "List all DeployTargets (kubernetes or openshift) in lagoon, this requires admin level permissions", + Long: "List all Deploytargets(Kubernetes) in lagoon, this requires admin level permissions", PreRunE: func(_ *cobra.Command, _ []string) error { return validateTokenE(cmdLagoon) }, @@ -127,7 +127,7 @@ var listDeployTargetsCmd = &cobra.Command{ }) } outputOptions.MultiLine = true - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -145,6 +145,7 @@ var listDeployTargetsCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -189,7 +190,8 @@ var listGroupsCmd = &cobra.Command{ Header: []string{"ID", "Name"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -263,7 +265,8 @@ var listGroupProjectsCmd = &cobra.Command{ } else { outputOptions.Error = "There are no projects in any groups\n" } - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } @@ -274,7 +277,8 @@ var listGroupProjectsCmd = &cobra.Command{ if listAllProjects { dataMain.Header = append(dataMain.Header, "GroupName") } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -310,7 +314,8 @@ var listEnvironmentsCmd = &cobra.Command{ if len(*environments) == 0 { outputOptions.Error = fmt.Sprintf("No environments found for project '%s'\n", cmdProjectName) - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } @@ -334,7 +339,8 @@ var listEnvironmentsCmd = &cobra.Command{ Header: []string{"ID", "Name", "DeployType", "Environment", "Namespace", "Route", "DeployTarget"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -409,13 +415,15 @@ var listVariablesCmd = &cobra.Command{ } else { outputOptions.Error = fmt.Sprintf("There are no variables for project '%s'\n", cmdProjectName) } - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: header, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -470,14 +478,16 @@ var listDeploymentsCmd = &cobra.Command{ if len(data) == 0 { outputOptions.Error = fmt.Sprintf("There are no deployments for environment '%s' in project '%s'\n", cmdProjectEnvironment, cmdProjectName) - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } dataMain := output.Table{ Header: []string{"ID", "RemoteID", "Name", "Status", "Created", "Started", "Completed"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -533,14 +543,16 @@ var listTasksCmd = &cobra.Command{ if len(data) == 0 { outputOptions.Error = fmt.Sprintf("There are no tasks for environment '%s' in project '%s'\n", cmdProjectEnvironment, cmdProjectName) - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } dataMain := output.Table{ Header: []string{"ID", "RemoteID", "Name", "Status", "Created", "Started", "Completed", "Service"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -608,7 +620,8 @@ Without a group name, this query may time out in large Lagoon instalschema.`, Header: []string{"ID", "GroupName", "Email", "Role"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -659,7 +672,8 @@ This query can take a long time to run if there are a lot of users.`, Header: []string{"ID", "Email", "FirstName", "LastName", "Comment"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -709,7 +723,8 @@ var listUsersGroupsCmd = &cobra.Command{ Header: []string{"ID", "Email", "GroupName", "GroupRole"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -759,14 +774,16 @@ var listInvokableTasks = &cobra.Command{ if len(data) == 0 { outputOptions.Error = "There are no user defined tasks for this environment\n" - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } dataMain := output.Table{ Header: []string{"Task Name", "Description"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -811,7 +828,8 @@ var listProjectGroupsCmd = &cobra.Command{ if len(projectGroups.Groups) == 0 { outputOptions.Error = fmt.Sprintf("There are no groups for project '%s'\n", cmdProjectName) - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } @@ -831,7 +849,8 @@ var listProjectGroupsCmd = &cobra.Command{ Header: []string{"Group ID", "Group Name", "Organization"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -879,7 +898,8 @@ var listOrganizationProjectsCmd = &cobra.Command{ if len(*orgProjects) == 0 { outputOptions.Error = fmt.Sprintf("No associated projects found for organization '%s'\n", organizationName) - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } @@ -895,7 +915,8 @@ var listOrganizationProjectsCmd = &cobra.Command{ Header: []string{"ID", "Name", "Group Count"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -942,7 +963,8 @@ var listOrganizationGroupsCmd = &cobra.Command{ } if len(*orgGroups) == 0 { outputOptions.Error = fmt.Sprintf("No associated groups found for organization '%s'\n", organizationName) - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } @@ -959,7 +981,8 @@ var listOrganizationGroupsCmd = &cobra.Command{ Header: []string{"ID", "Name", "Type", "Member Count"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -1002,7 +1025,8 @@ var listOrganizationDeployTargetsCmd = &cobra.Command{ } if len(*deployTargets) == 0 { outputOptions.Error = fmt.Sprintf("No associated deploy targets found for organization '%s'\n", organizationName) - output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + r := output.RenderOutput(output.Table{Data: []output.Data{[]string{}}}, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil } @@ -1022,7 +1046,8 @@ var listOrganizationDeployTargetsCmd = &cobra.Command{ Header: []string{"ID", "Name", "Router Pattern", "Cloud Region", "Cloud Provider", "SSH Host", "SSH Port"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -1082,7 +1107,8 @@ var ListOrganizationUsersCmd = &cobra.Command{ Header: []string{"ID", "Email", "First Name", "LastName", "Comment", "Owner"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -1131,7 +1157,8 @@ var listOrganizationsCmd = &cobra.Command{ Header: []string{"ID", "Name", "Description", "Project Quota", "Group Quota", "Notification Quota", "Environment Quota", "Route Quota"}, Data: data, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } diff --git a/cmd/login.go b/cmd/login.go index 6d48ffc7..158b1bdd 100644 --- a/cmd/login.go +++ b/cmd/login.go @@ -1,6 +1,7 @@ package cmd import ( + "bytes" "fmt" "net" "os" @@ -10,7 +11,7 @@ import ( "github.com/spf13/cobra" "golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh/agent" - "golang.org/x/crypto/ssh/terminal" + terminal "golang.org/x/term" ) var loginCmd = &cobra.Command{ @@ -23,29 +24,71 @@ var loginCmd = &cobra.Command{ }, } -func publicKey(path string, skipAgent bool) (ssh.AuthMethod, func() error) { +func publicKey(path, publicKeyOverride string, publicKeyIdentities []string, skipAgent bool) (ssh.AuthMethod, func() error) { noopCloseFunc := func() error { return nil } if !skipAgent { // Connect to SSH agent to ask for unencrypted private keys if sshAgentConn, err := net.Dial("unix", os.Getenv("SSH_AUTH_SOCK")); err == nil { sshAgent := agent.NewClient(sshAgentConn) - - keys, _ := sshAgent.List() - if len(keys) > 0 { - // There are key(s) in the agent - //defer sshAgentConn.Close() - return ssh.PublicKeysCallback(sshAgent.Signers), sshAgentConn.Close + agentSigners, err := sshAgent.Signers() + handleError(err) + // There are key(s) in the agent + if len(agentSigners) > 0 { + identities := make(map[string]ssh.PublicKey) + if publicKeyOverride == "" { + // check for identify files in the current lagoon config context + for _, identityFile := range publicKeyIdentities { + // append to identityfiles + keybytes, err := os.ReadFile(identityFile) + handleError(err) + pubkey, _, _, _, err := ssh.ParseAuthorizedKey(keybytes) + handleError(err) + identities[identityFile] = pubkey + } + } else { + // append to identityfiles + keybytes, err := os.ReadFile(publicKeyOverride) + handleError(err) + pubkey, _, _, _, err := ssh.ParseAuthorizedKey(keybytes) + handleError(err) + identities[publicKeyOverride] = pubkey + } + // check all keys in the agent to see if there is a matching identity file + for _, signer := range agentSigners { + for file, identity := range identities { + if bytes.Equal(signer.PublicKey().Marshal(), identity.Marshal()) { + if verboseOutput { + fmt.Fprintf(os.Stderr, "ssh: attempting connection using identity file public key: %s\n", file) + } + // only provide this matching key back to the ssh client to use + return ssh.PublicKeys(signer), noopCloseFunc + } + } + } + if publicKeyOverride != "" { + handleError(fmt.Errorf("ssh: no key matching %s in agent", publicKeyOverride)) + } + // if no matching identity files, just return all agent keys like previous behaviour + if verboseOutput { + fmt.Fprintf(os.Stderr, "ssh: attempting connection using any keys in ssh-agent\n") + } + return ssh.PublicKeysCallback(sshAgent.Signers), noopCloseFunc } } } + // if no keys in the agent, and a specific private key has been defined, then check the key and use it if possible + if verboseOutput { + fmt.Fprintf(os.Stderr, "ssh: attempting connection using private key: %s\n", path) + } key, err := os.ReadFile(path) handleError(err) // Try to look for an unencrypted private key signer, err := ssh.ParsePrivateKey(key) if err != nil { + // if encrypted, prompt for passphrase or error and ask user to add to their agent fmt.Printf("Enter passphrase for %s:", path) bytePassword, err := terminal.ReadPassword(int(os.Stdin.Fd())) if err != nil { @@ -60,9 +103,7 @@ func publicKey(path string, skipAgent bool) (ssh.AuthMethod, func() error) { fmt.Println("Lagoon CLI could not decode private key, you will need to add your private key to your ssh-agent.") os.Exit(1) } - return ssh.PublicKeys(signer), noopCloseFunc } - // return unencrypted private key return ssh.PublicKeys(signer), noopCloseFunc } @@ -98,7 +139,7 @@ func retrieveTokenViaSsh() (string, error) { privateKey = cmdSSHKey skipAgent = true } - authMethod, closeSSHAgent := publicKey(privateKey, skipAgent) + authMethod, closeSSHAgent := publicKey(privateKey, cmdPubkeyIdentity, lagoonCLIConfig.Lagoons[lagoonCLIConfig.Current].PublicKeyIdentities, skipAgent) config := &ssh.ClientConfig{ User: "lagoon", Auth: []ssh.AuthMethod{ diff --git a/cmd/logs.go b/cmd/logs.go index 304835ee..edbf41aa 100644 --- a/cmd/logs.go +++ b/cmd/logs.go @@ -112,7 +112,7 @@ func getSSHClientConfig(environmentName string) (*ssh.ClientConfig, return nil, nil, fmt.Errorf("couldn't get ~/.ssh/known_hosts: %v", err) } // configure an SSH client session - authMethod, closeSSHAgent := publicKey(privateKey, skipAgent) + authMethod, closeSSHAgent := publicKey(privateKey, cmdPubkeyIdentity, lagoonCLIConfig.Lagoons[lagoonCLIConfig.Current].PublicKeyIdentities, skipAgent) return &ssh.ClientConfig{ User: cmdProjectName + "-" + environmentName, Auth: []ssh.AuthMethod{authMethod}, diff --git a/cmd/notificationsemail.go b/cmd/notificationsemail.go index bdd62a1a..13d037ac 100644 --- a/cmd/notificationsemail.go +++ b/cmd/notificationsemail.go @@ -78,7 +78,7 @@ It does not configure a project to send notifications to email though, you need notificationData = append(notificationData, "-") } data = append(data, notificationData) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -87,6 +87,7 @@ It does not configure a project to send notifications to email though, you need }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -135,7 +136,8 @@ This command is used to add an existing email notification in Lagoon to a projec resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -185,13 +187,14 @@ var listProjectEmailsCmd = &cobra.Command{ }) } } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Name", "EmailAddress", }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -233,7 +236,7 @@ var listAllEmailsCmd = &cobra.Command{ } } } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Project", "Name", @@ -241,6 +244,7 @@ var listAllEmailsCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -285,7 +289,8 @@ var deleteProjectEmailNotificationCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -326,7 +331,8 @@ var deleteEmailNotificationCmd = &cobra.Command{ resultData := output.Result{ Result: result.DeleteNotification, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -392,7 +398,7 @@ var updateEmailNotificationCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", result.EmailAddress)), }, } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -400,6 +406,7 @@ var updateEmailNotificationCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, diff --git a/cmd/notificationsrocketchat.go b/cmd/notificationsrocketchat.go index f1130028..5d507802 100644 --- a/cmd/notificationsrocketchat.go +++ b/cmd/notificationsrocketchat.go @@ -85,7 +85,7 @@ It does not configure a project to send notifications to RocketChat though, you notificationData = append(notificationData, "-") } data = append(data, notificationData) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -95,6 +95,7 @@ It does not configure a project to send notifications to RocketChat though, you }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -144,7 +145,8 @@ This command is used to add an existing RocketChat notification in Lagoon to a p resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -195,7 +197,7 @@ var listProjectRocketChatsCmd = &cobra.Command{ }) } } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Name", "Webhook", @@ -203,6 +205,7 @@ var listProjectRocketChatsCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -245,7 +248,7 @@ var listAllRocketChatsCmd = &cobra.Command{ } } } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Project", "Name", @@ -254,6 +257,7 @@ var listAllRocketChatsCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -298,7 +302,8 @@ var deleteProjectRocketChatNotificationCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -339,7 +344,8 @@ var deleteRocketChatNotificationCmd = &cobra.Command{ resultData := output.Result{ Result: result.DeleteNotification, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -411,7 +417,7 @@ var updateRocketChatNotificationCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", result.Channel)), }, } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -420,6 +426,7 @@ var updateRocketChatNotificationCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, diff --git a/cmd/notificationsslack.go b/cmd/notificationsslack.go index 7032f3a2..7113d32e 100644 --- a/cmd/notificationsslack.go +++ b/cmd/notificationsslack.go @@ -85,7 +85,7 @@ It does not configure a project to send notifications to Slack though, you need notificationData = append(notificationData, "-") } data = append(data, notificationData) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -95,6 +95,7 @@ It does not configure a project to send notifications to Slack though, you need }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -142,7 +143,8 @@ This command is used to add an existing Slack notification in Lagoon to a projec resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -193,7 +195,7 @@ var listProjectSlacksCmd = &cobra.Command{ }) } } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Name", "Webhook", @@ -201,6 +203,7 @@ var listProjectSlacksCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -243,7 +246,7 @@ var listAllSlacksCmd = &cobra.Command{ } } } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Project", "Name", @@ -252,6 +255,7 @@ var listAllSlacksCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -296,7 +300,8 @@ var deleteProjectSlackNotificationCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -337,7 +342,8 @@ var deleteSlackNotificationCmd = &cobra.Command{ resultData := output.Result{ Result: result.DeleteNotification, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -409,7 +415,7 @@ var updateSlackNotificationCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", result.Channel)), }, } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -418,6 +424,7 @@ var updateSlackNotificationCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, diff --git a/cmd/notificationsteams.go b/cmd/notificationsteams.go index d267fb66..49cb0ef5 100644 --- a/cmd/notificationsteams.go +++ b/cmd/notificationsteams.go @@ -79,7 +79,7 @@ It does not configure a project to send notifications to Microsoft Teams though, notificationData = append(notificationData, "-") } data = append(data, notificationData) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -88,6 +88,7 @@ It does not configure a project to send notifications to Microsoft Teams though, }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -135,7 +136,8 @@ This command is used to add an existing Microsoft Teams notification in Lagoon t resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -185,13 +187,14 @@ var listProjectMicrosoftTeamsCmd = &cobra.Command{ }) } } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Name", "Webhook", }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -233,7 +236,7 @@ var listAllMicrosoftTeamsCmd = &cobra.Command{ } } } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Project", "Name", @@ -241,6 +244,7 @@ var listAllMicrosoftTeamsCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -285,7 +289,8 @@ var deleteProjectMicrosoftTeamsNotificationCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -326,7 +331,8 @@ var deleteMicrosoftTeamsNotificationCmd = &cobra.Command{ resultData := output.Result{ Result: result.DeleteNotification, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -392,7 +398,7 @@ var updateMicrosoftTeamsNotificationCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", result.Webhook)), }, } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -400,6 +406,7 @@ var updateMicrosoftTeamsNotificationCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, diff --git a/cmd/notificationswebhook.go b/cmd/notificationswebhook.go index 58eee15a..04125a0b 100644 --- a/cmd/notificationswebhook.go +++ b/cmd/notificationswebhook.go @@ -79,7 +79,7 @@ It does not configure a project to send notifications to webhook though, you nee notificationData = append(notificationData, "-") } data = append(data, notificationData) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -88,6 +88,7 @@ It does not configure a project to send notifications to webhook though, you nee }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -135,7 +136,8 @@ This command is used to add an existing webhook notification in Lagoon to a proj resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -185,13 +187,14 @@ var listProjectWebhooksCmd = &cobra.Command{ }) } } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Name", "Webhook", }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -233,7 +236,7 @@ var listAllWebhooksCmd = &cobra.Command{ } } } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "Project", "Name", @@ -241,6 +244,7 @@ var listAllWebhooksCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -285,7 +289,8 @@ var deleteProjectWebhookNotificationCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -326,7 +331,8 @@ var deleteWebhookNotificationCmd = &cobra.Command{ resultData := output.Result{ Result: result.DeleteNotification, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -392,7 +398,7 @@ var updateWebhookNotificationCmd = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", result.Webhook)), }, } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -400,6 +406,7 @@ var updateWebhookNotificationCmd = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, diff --git a/cmd/organization.go b/cmd/organization.go index 1685a2b9..5ef92789 100644 --- a/cmd/organization.go +++ b/cmd/organization.go @@ -90,7 +90,8 @@ var addOrganizationCmd = &cobra.Command{ "Organization Name": organizationName, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -139,7 +140,8 @@ var deleteOrganizationCmd = &cobra.Command{ resultData := output.Result{ Result: organization.Name, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -229,7 +231,8 @@ var updateOrganizationCmd = &cobra.Command{ "Organization Name": result.Name, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } diff --git a/cmd/project.go b/cmd/project.go index d4ef7079..730d0760 100644 --- a/cmd/project.go +++ b/cmd/project.go @@ -50,7 +50,8 @@ var deleteProjectCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -86,7 +87,7 @@ var addProjectCmd = &cobra.Command{ if err != nil { return err } - openshift, err := cmd.Flags().GetUint("openshift") + deploytarget, err := cmd.Flags().GetUint("deploytarget") if err != nil { return err } @@ -102,7 +103,7 @@ var addProjectCmd = &cobra.Command{ if err != nil { return err } - openshiftProjectPattern, err := cmd.Flags().GetString("openshift-project-pattern") + deploytargetProjectPattern, err := cmd.Flags().GetString("deploytarget-project-pattern") if err != nil { return err } @@ -139,7 +140,7 @@ var addProjectCmd = &cobra.Command{ return err } - if err := requiredInputCheck("Project name", cmdProjectName, "git-url", gitUrl, "Production environment", productionEnvironment, "Openshift", strconv.Itoa(int(openshift))); err != nil { + if err := requiredInputCheck("Project name", cmdProjectName, "git-url", gitUrl, "Production environment", productionEnvironment, "Deploytarget", strconv.Itoa(int(deploytarget))); err != nil { return err } @@ -160,8 +161,8 @@ var addProjectCmd = &cobra.Command{ StandbyProductionEnvironment: standbyProductionEnvironment, Branches: branches, PullRequests: pullrequests, - OpenshiftProjectPattern: openshiftProjectPattern, - Openshift: openshift, + OpenshiftProjectPattern: deploytargetProjectPattern, + Openshift: deploytarget, DevelopmentEnvironmentsLimit: developmentEnvironmentsLimit, StorageCalc: storageCalc, AutoIdle: autoIdle, @@ -203,7 +204,8 @@ var addProjectCmd = &cobra.Command{ if organizationName != "" { resultData.ResultData["Organization"] = organizationName } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -232,7 +234,7 @@ var updateProjectCmd = &cobra.Command{ if err != nil { return err } - openshift, err := cmd.Flags().GetUint("openshift") + deploytarget, err := cmd.Flags().GetUint("deploytarget") if err != nil { return err } @@ -248,7 +250,7 @@ var updateProjectCmd = &cobra.Command{ if err != nil { return err } - openshiftProjectPattern, err := cmd.Flags().GetString("openshift-project-pattern") + deploytargetProjectPattern, err := cmd.Flags().GetString("deploytarget-project-pattern") if err != nil { return err } @@ -326,11 +328,11 @@ var updateProjectCmd = &cobra.Command{ projectPatch := schema.UpdateProjectPatchInput{ GitURL: nullStrCheck(gitUrl), ProductionEnvironment: nullStrCheck(productionEnvironment), - Openshift: nullUintCheck(openshift), + Openshift: nullUintCheck(deploytarget), StandbyProductionEnvironment: nullStrCheck(standbyProductionEnvironment), Branches: nullStrCheck(branches), Pullrequests: nullStrCheck(pullrequests), - OpenshiftProjectPattern: nullStrCheck(openshiftProjectPattern), + OpenshiftProjectPattern: nullStrCheck(deploytargetProjectPattern), DevelopmentEnvironmentsLimit: nullUintCheck(developmentEnvironmentsLimit), StorageCalc: nullUintCheck(storageCalc), AutoIdle: nullUintCheck(autoIdle), @@ -377,7 +379,7 @@ var updateProjectCmd = &cobra.Command{ } if project.Name == "" { outputOptions.Error = fmt.Sprintf("Project '%s' not found\n", cmdProjectName) - output.RenderError(outputOptions.Error, outputOptions) + output.RenderError(outputOptions.Error, outputOptions, cmd) return nil } projectUpdate, err := lagoon.UpdateProject(context.TODO(), int(project.ID), projectPatch, lc) @@ -391,7 +393,8 @@ var updateProjectCmd = &cobra.Command{ "Project Name": projectUpdate.Name, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -460,10 +463,11 @@ var listProjectByMetadata = &cobra.Command{ if showMetadata { header = append(header, "Metadata") } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: header, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -510,10 +514,11 @@ var getProjectMetadata = &cobra.Command{ "Key", "Value", } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: header, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -565,7 +570,7 @@ var updateProjectMetadata = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", projectResult.Name)), returnNonEmptyString(fmt.Sprintf("%v", string(metaData))), }) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -573,6 +578,7 @@ var updateProjectMetadata = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -621,7 +627,7 @@ var deleteProjectMetadataByKey = &cobra.Command{ returnNonEmptyString(fmt.Sprintf("%v", projectResult.Name)), returnNonEmptyString(fmt.Sprintf("%v", string(metaData))), }) - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Name", @@ -629,6 +635,7 @@ var deleteProjectMetadataByKey = &cobra.Command{ }, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -694,7 +701,8 @@ var removeProjectFromOrganizationCmd = &cobra.Command{ "Organization Name": organizationName, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -713,7 +721,7 @@ func init() { updateProjectCmd.Flags().StringP("pullrequests", "m", "", "Which Pull Requests should be deployed") updateProjectCmd.Flags().StringP("production-environment", "E", "", "Which environment(the name) should be marked as the production environment") updateProjectCmd.Flags().String("standby-production-environment", "", "Which environment(the name) should be marked as the standby production environment") - updateProjectCmd.Flags().StringP("openshift-project-pattern", "o", "", "Pattern of OpenShift Project/Namespace that should be generated") + updateProjectCmd.Flags().StringP("deploytarget-project-pattern", "o", "", "Pattern of Deploytarget(Kubernetes) Project/Namespace that should be generated") updateProjectCmd.Flags().StringP("build-image", "", "", "Build Image for the project. Set to 'null' to remove the build image") updateProjectCmd.Flags().StringP("availability", "", "", "Availability of the project") @@ -722,7 +730,7 @@ func init() { updateProjectCmd.Flags().UintP("auto-idle", "a", 0, "Auto idle setting of the project") updateProjectCmd.Flags().UintP("storage-calc", "C", 0, "Should storage for this environment be calculated") updateProjectCmd.Flags().UintP("development-environments-limit", "L", 0, "How many environments can be deployed at one time") - updateProjectCmd.Flags().UintP("openshift", "S", 0, "Reference to OpenShift Object this Project should be deployed to") + updateProjectCmd.Flags().UintP("deploytarget", "S", 0, "Reference to Deploytarget(Kubernetes) this Project should be deployed to") updateProjectCmd.Flags().UintP("deployments-disabled", "", 0, "Admin only flag for disabling deployments on a project, 1 to disable deployments, 0 to enable") updateProjectCmd.Flags().UintP("facts-ui", "", 0, "Enables the Lagoon insights Facts tab in the UI. Set to 1 to enable, 0 to disable") @@ -738,12 +746,12 @@ func init() { addProjectCmd.Flags().StringP("pullrequests", "m", "", "Which Pull Requests should be deployed") addProjectCmd.Flags().StringP("production-environment", "E", "", "Which environment(the name) should be marked as the production environment") addProjectCmd.Flags().String("standby-production-environment", "", "Which environment(the name) should be marked as the standby production environment") - addProjectCmd.Flags().StringP("openshift-project-pattern", "o", "", "Pattern of OpenShift Project/Namespace that should be generated") + addProjectCmd.Flags().StringP("deploytarget-project-pattern", "", "", "Pattern of Deploytarget(Kubernetes) Project/Namespace that should be generated") addProjectCmd.Flags().UintP("auto-idle", "a", 0, "Auto idle setting of the project") addProjectCmd.Flags().UintP("storage-calc", "C", 0, "Should storage for this environment be calculated") addProjectCmd.Flags().UintP("development-environments-limit", "L", 0, "How many environments can be deployed at one time") - addProjectCmd.Flags().UintP("openshift", "S", 0, "Reference to OpenShift Object this Project should be deployed to") + addProjectCmd.Flags().UintP("deploytarget", "S", 0, "Reference to Deploytarget(Kubernetes) target this Project should be deployed to") addProjectCmd.Flags().StringP("build-image", "", "", "Build Image for the project") addProjectCmd.Flags().Bool("owner", false, "Add the user as an owner of the project") addProjectCmd.Flags().StringP("organization-name", "O", "", "Name of the Organization to add the project to") diff --git a/cmd/project_test.go b/cmd/project_test.go new file mode 100644 index 00000000..2863fc4b --- /dev/null +++ b/cmd/project_test.go @@ -0,0 +1,111 @@ +package cmd + +import ( + "bytes" + "fmt" + "github.com/spf13/pflag" + "github.com/stretchr/testify/assert" + "testing" + + "github.com/spf13/cobra" +) + +func TestAPIProjectCommands(t *testing.T) { + tests := []struct { + name string + cmdArgs []string + setupCmd func(*cobra.Command, pflag.FlagSet) + expectOut []string + expectErr bool + expectedErrString string + }{ + { + name: "Add Project", + cmdArgs: []string{"add", "project", "--project=test-project", "--production-environment=main", "--openshift=4", "--git-url=https://github.com/lagoon-examples/drupal10-base"}, + setupCmd: func(cmd *cobra.Command, flags pflag.FlagSet) { + cmd.AddCommand(addCmd) + addCmd.AddCommand(addProjectCmd) + }, + expectOut: []string{"success", "test-project", "https://github.com/lagoon-examples/drupal10-base"}, + expectErr: false, + }, + { + name: "Add Project to an Organization", + cmdArgs: []string{"add", "project", "--project=test-organization-project", "--organization-name=lagoon-demo-organization", "--production-environment=main", "--openshift=4", "--git-url=https://github.com/lagoon-examples/drupal10-base"}, + setupCmd: func(cmd *cobra.Command, flags pflag.FlagSet) { + cmd.AddCommand(addCmd) + addCmd.AddCommand(addProjectCmd) + }, + expectOut: []string{"success", "test-organization-project", "https://github.com/lagoon-examples/drupal10-base", "lagoon-demo-organization"}, + expectErr: false, + }, + { + name: "Update a Project", + cmdArgs: []string{"update", "project", "--project=lagoon-demo", "--auto-idle=0"}, + setupCmd: func(cmd *cobra.Command, flags pflag.FlagSet) { + cmd.AddCommand(updateCmd) + updateCmd.AddCommand(updateProjectCmd) + }, + expectOut: []string{"success", "lagoon-demo"}, + expectErr: false, + }, + { + name: "Remove a Project from an Organization", + cmdArgs: []string{"delete", "organization-project", "--project=test-organization-project", "--organization-name=lagoon-demo-organization", "--force"}, + setupCmd: func(cmd *cobra.Command, flags pflag.FlagSet) { + cmd.AddCommand(deleteCmd) + deleteCmd.AddCommand(removeProjectFromOrganizationCmd) + }, + expectOut: []string{"success", "test-organization-project", "lagoon-demo-organization"}, + expectErr: false, + }, + { + name: "Delete a Project", + cmdArgs: []string{"delete", "project", "--project=test-project", "--force"}, + setupCmd: func(cmd *cobra.Command, flags pflag.FlagSet) { + cmd.AddCommand(deleteCmd) + deleteCmd.AddCommand(deleteProjectCmd) + }, + expectOut: []string{"success"}, + expectErr: false, + }, + { + name: "Delete an Organization Project", + cmdArgs: []string{"delete", "project", "--project=test-organization-project", "--force"}, + setupCmd: func(cmd *cobra.Command, flags pflag.FlagSet) { + cmd.AddCommand(deleteCmd) + deleteCmd.AddCommand(deleteProjectCmd) + }, + expectOut: []string{"success"}, + expectErr: false, + }, + // TODO: Add tests for metadata commands + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + cmd := rootCmd + tt.cmdArgs = append(tt.cmdArgs, "--output-json", "--config-file=../temp_config.yaml") + cmd.SetArgs(tt.cmdArgs) + flags := pflag.FlagSet{} + tt.setupCmd(cmd, flags) + + var out bytes.Buffer + cmd.SetOut(&out) + cmd.SetErr(&out) + + err := cmd.Execute() + if err != nil && tt.expectErr { + assert.NotEmpty(t, err) + fmt.Println("err:", err) + return + } else if err != nil { + t.Fatalf("Error executing command: %v", err) + } + + for _, eo := range tt.expectOut { + assert.Contains(t, out.String(), eo) + } + + }) + } +} diff --git a/cmd/root.go b/cmd/root.go index 924f147a..fb902cee 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -26,6 +26,7 @@ var cmdProject app.LagoonProject var cmdLagoon = "" var forceAction bool var cmdSSHKey = "" +var cmdPubkeyIdentity = "" var inputScanner = bufio.NewScanner(os.Stdin) var versionFlag bool var docsFlag bool @@ -36,6 +37,7 @@ var createConfig bool var userPath string var configFilePath string var updateDocURL = "https://uselagoon.github.io/lagoon-cli" +var verboseOutput bool var skipUpdateCheck bool @@ -129,6 +131,8 @@ func init() { rootCmd.PersistentFlags().StringVarP(&cmdLagoon, "lagoon", "l", "", "The Lagoon instance to interact with") rootCmd.PersistentFlags().BoolVarP(&forceAction, "force", "", false, "Force yes on prompts (if supported)") rootCmd.PersistentFlags().StringVarP(&cmdSSHKey, "ssh-key", "i", "", "Specify path to a specific SSH key to use for lagoon authentication") + rootCmd.PersistentFlags().StringVarP(&cmdPubkeyIdentity, "ssh-publickey", "", "", + "Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent.\nThis will override any public key identities defined in configuration") // rootCmd.PersistentFlags().BoolVarP(&listAllProjects, "all-projects", "", false, "All projects (if supported)") rootCmd.PersistentFlags().BoolVarP(&outputOptions.Header, "no-header", "", false, "No header on table (if supported)") @@ -137,6 +141,7 @@ func init() { rootCmd.PersistentFlags().BoolVarP(&outputOptions.Pretty, "pretty", "", false, "Make JSON pretty (if supported)") rootCmd.PersistentFlags().BoolVarP(&debugEnable, "debug", "", false, "Enable debugging output (if supported)") rootCmd.PersistentFlags().BoolVarP(&skipUpdateCheck, "skip-update-check", "", false, "Skip checking for updates") + rootCmd.PersistentFlags().BoolVarP(&verboseOutput, "verbose", "v", false, "Enable verbose output to stderr (if supported)") // get config-file from flag rootCmd.PersistentFlags().StringP("config-file", "", "", "Path to the config file to use (must be *.yml or *.yaml)") @@ -354,7 +359,6 @@ func versionCheck(lagoon string) error { func getLagoonConfigFile(configPath *string, configName *string, configExtension *string, createConfig bool, cmd *cobra.Command) error { // check if we have an envvar or flag to define our confg file - var configFilePath string configFilePath, err := cmd.Flags().GetString("config-file") if err != nil { return fmt.Errorf("error reading flag `config-file`: %v", err) diff --git a/cmd/ssh.go b/cmd/ssh.go index 1a406a25..003b5dee 100644 --- a/cmd/ssh.go +++ b/cmd/ssh.go @@ -95,7 +95,7 @@ var sshEnvCmd = &cobra.Command{ } else { // start an interactive ssh session - authMethod, closeSSHAgent := publicKey(privateKey, skipAgent) + authMethod, closeSSHAgent := publicKey(privateKey, cmdPubkeyIdentity, lagoonCLIConfig.Lagoons[lagoonCLIConfig.Current].PublicKeyIdentities, skipAgent) config := &ssh.ClientConfig{ User: sshConfig["username"], Auth: []ssh.AuthMethod{ diff --git a/cmd/tasks.go b/cmd/tasks.go index 3b28c0e4..02272424 100644 --- a/cmd/tasks.go +++ b/cmd/tasks.go @@ -79,7 +79,8 @@ var getTaskByID = &cobra.Command{ dataMain.Header = append(dataMain.Header, "Logs") dataMain.Data[0] = append(dataMain.Data[0], returnNonEmptyString(result.Logs)) } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -181,7 +182,8 @@ var runDrushArchiveDump = &cobra.Command{ Result: "success", ResultData: resultMap["taskDrushArchiveDump"].(map[string]interface{}), } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } else { return fmt.Errorf("unable to determine status of task") } @@ -249,7 +251,8 @@ var runDrushSQLDump = &cobra.Command{ Result: "success", ResultData: resultMap["taskDrushSqlDump"].(map[string]interface{}), } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } else { return fmt.Errorf("unable to determine status of task") } @@ -317,7 +320,8 @@ var runDrushCacheClear = &cobra.Command{ Result: "success", ResultData: resultMap["taskDrushCacheClear"].(map[string]interface{}), } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } else { return fmt.Errorf("unable to determine status of task") } @@ -388,7 +392,8 @@ Direct: "status": taskResult.Status, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -489,7 +494,8 @@ Path: "id": taskResult.ID, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -549,7 +555,8 @@ var uploadFilesToTask = &cobra.Command{ }, }, } - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } diff --git a/cmd/users.go b/cmd/users.go index 40d04c39..5ea7909e 100644 --- a/cmd/users.go +++ b/cmd/users.go @@ -121,7 +121,8 @@ var addUserCmd = &cobra.Command{ "id": user.ID, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -199,7 +200,8 @@ Add key by defining key value, but not specifying a key name (will default to tr "ID": result.ID, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -241,7 +243,8 @@ var deleteSSHKeyCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -287,7 +290,8 @@ var deleteUserCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -362,7 +366,8 @@ var updateUserCmd = &cobra.Command{ "ID": user.ID, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -423,7 +428,8 @@ var getUserKeysCmd = &cobra.Command{ } outputOptions.MultiLine = true - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -492,7 +498,8 @@ var getAllUserKeysCmd = &cobra.Command{ Data: data, } outputOptions.MultiLine = true - output.RenderOutput(dataMain, outputOptions) + r := output.RenderOutput(dataMain, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -563,7 +570,8 @@ var addAdministratorToOrganizationCmd = &cobra.Command{ "Organization Name": organizationName, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) return nil }, } @@ -635,7 +643,8 @@ var removeAdministratorFromOrganizationCmd = &cobra.Command{ "Organization Name": organizationName, }, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, @@ -682,7 +691,8 @@ var resetPasswordCmd = &cobra.Command{ resultData := output.Result{ Result: "success", } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, diff --git a/cmd/variables.go b/cmd/variables.go index 88e6bc5a..0ef5900a 100644 --- a/cmd/variables.go +++ b/cmd/variables.go @@ -85,12 +85,13 @@ var addVariableCmd = &cobra.Command{ header = append(header, "Scope") header = append(header, "Name") header = append(header, "Value") - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: header, Data: data, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } else { - output.RenderInfo(fmt.Sprintf("variable %s remained unchanged", varName), outputOptions) + output.RenderInfo(fmt.Sprintf("variable %s remained unchanged", varName), outputOptions, cmd) } return nil }, @@ -142,7 +143,8 @@ var deleteVariableCmd = &cobra.Command{ resultData := output.Result{ Result: deleteResult.DeleteEnvVar, } - output.RenderResult(resultData, outputOptions) + r := output.RenderResult(resultData, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil }, diff --git a/cmd/whoami.go b/cmd/whoami.go index d8193548..ff0387b8 100644 --- a/cmd/whoami.go +++ b/cmd/whoami.go @@ -86,12 +86,13 @@ This is useful if you have multiple keys or accounts in multiple lagoons and nee } keys = append(keys, keyData) } - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: header, Data: keys, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } else { - output.RenderOutput(output.Table{ + r := output.RenderOutput(output.Table{ Header: []string{ "ID", "Email", @@ -109,6 +110,7 @@ This is useful if you have multiple keys or accounts in multiple lagoons and nee }, }, }, outputOptions) + fmt.Fprintf(cmd.OutOrStdout(), "%s", r) } return nil diff --git a/docs/commands/lagoon.md b/docs/commands/lagoon.md index c92d36cc..bbe54f1f 100644 --- a/docs/commands/lagoon.md +++ b/docs/commands/lagoon.md @@ -13,20 +13,23 @@ lagoon [flags] ### Options ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -h, --help help for lagoon - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication - --version Version information + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -h, --help help for lagoon + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) + --version Version information ``` ### SEE ALSO @@ -42,6 +45,7 @@ lagoon [flags] * [lagoon kibana](lagoon_kibana.md) - Launch the kibana interface * [lagoon list](lagoon_list.md) - List projects, environments, deployments, variables or notifications * [lagoon login](lagoon_login.md) - Log into a Lagoon instance +* [lagoon logs](lagoon_logs.md) - Display logs for a service of an environment and project * [lagoon raw](lagoon_raw.md) - Run a custom query or mutation * [lagoon reset-password](lagoon_reset-password.md) - Send a password reset email * [lagoon retrieve](lagoon_retrieve.md) - Trigger a retrieval operation on backups diff --git a/docs/commands/lagoon_add.md b/docs/commands/lagoon_add.md index e600bac5..fd8aa763 100644 --- a/docs/commands/lagoon_add.md +++ b/docs/commands/lagoon_add.md @@ -11,18 +11,21 @@ Add a project, or add notifications and variables to projects or environments ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_deploytarget-config.md b/docs/commands/lagoon_add_deploytarget-config.md index eb44e9a0..479b387d 100644 --- a/docs/commands/lagoon_add_deploytarget-config.md +++ b/docs/commands/lagoon_add_deploytarget-config.md @@ -19,18 +19,21 @@ lagoon add deploytarget-config [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_deploytarget.md b/docs/commands/lagoon_add_deploytarget.md index 43b14db9..0b4cbca8 100644 --- a/docs/commands/lagoon_add_deploytarget.md +++ b/docs/commands/lagoon_add_deploytarget.md @@ -4,7 +4,7 @@ Add a DeployTarget to lagoon ### Synopsis -Add a DeployTarget (kubernetes or openshift) to lagoon, this requires admin level permissions +Add a Deploytarget(Kubernetes) to lagoon, this requires admin level permissions ``` lagoon add deploytarget [flags] @@ -30,18 +30,21 @@ lagoon add deploytarget [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_group.md b/docs/commands/lagoon_add_group.md index 71b6aef2..06b039ae 100644 --- a/docs/commands/lagoon_add_group.md +++ b/docs/commands/lagoon_add_group.md @@ -23,18 +23,21 @@ lagoon add group [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification.md b/docs/commands/lagoon_add_notification.md index 0bbd6495..e7746c9a 100644 --- a/docs/commands/lagoon_add_notification.md +++ b/docs/commands/lagoon_add_notification.md @@ -11,18 +11,21 @@ Add notifications or add notifications to projects ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification_email.md b/docs/commands/lagoon_add_notification_email.md index bdf731e2..3b71cb37 100644 --- a/docs/commands/lagoon_add_notification_email.md +++ b/docs/commands/lagoon_add_notification_email.md @@ -24,18 +24,21 @@ lagoon add notification email [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification_microsoftteams.md b/docs/commands/lagoon_add_notification_microsoftteams.md index c2a8f8bf..cb4c782c 100644 --- a/docs/commands/lagoon_add_notification_microsoftteams.md +++ b/docs/commands/lagoon_add_notification_microsoftteams.md @@ -24,18 +24,21 @@ lagoon add notification microsoftteams [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification_project-email.md b/docs/commands/lagoon_add_notification_project-email.md index ca3922b6..7f20eaf9 100644 --- a/docs/commands/lagoon_add_notification_project-email.md +++ b/docs/commands/lagoon_add_notification_project-email.md @@ -21,18 +21,21 @@ lagoon add notification project-email [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification_project-microsoftteams.md b/docs/commands/lagoon_add_notification_project-microsoftteams.md index 591edbab..719c584e 100644 --- a/docs/commands/lagoon_add_notification_project-microsoftteams.md +++ b/docs/commands/lagoon_add_notification_project-microsoftteams.md @@ -21,18 +21,21 @@ lagoon add notification project-microsoftteams [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification_project-rocketchat.md b/docs/commands/lagoon_add_notification_project-rocketchat.md index 9053205f..a9b092f3 100644 --- a/docs/commands/lagoon_add_notification_project-rocketchat.md +++ b/docs/commands/lagoon_add_notification_project-rocketchat.md @@ -21,18 +21,21 @@ lagoon add notification project-rocketchat [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification_project-slack.md b/docs/commands/lagoon_add_notification_project-slack.md index 85a43fef..6e1d03ed 100644 --- a/docs/commands/lagoon_add_notification_project-slack.md +++ b/docs/commands/lagoon_add_notification_project-slack.md @@ -21,18 +21,21 @@ lagoon add notification project-slack [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification_project-webhook.md b/docs/commands/lagoon_add_notification_project-webhook.md index 648df1d6..048354c7 100644 --- a/docs/commands/lagoon_add_notification_project-webhook.md +++ b/docs/commands/lagoon_add_notification_project-webhook.md @@ -21,18 +21,21 @@ lagoon add notification project-webhook [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification_rocketchat.md b/docs/commands/lagoon_add_notification_rocketchat.md index 9771f46c..064cc13c 100644 --- a/docs/commands/lagoon_add_notification_rocketchat.md +++ b/docs/commands/lagoon_add_notification_rocketchat.md @@ -25,18 +25,21 @@ lagoon add notification rocketchat [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification_slack.md b/docs/commands/lagoon_add_notification_slack.md index e0aed9a6..90ef8286 100644 --- a/docs/commands/lagoon_add_notification_slack.md +++ b/docs/commands/lagoon_add_notification_slack.md @@ -25,18 +25,21 @@ lagoon add notification slack [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_notification_webhook.md b/docs/commands/lagoon_add_notification_webhook.md index 012fd213..3b09e185 100644 --- a/docs/commands/lagoon_add_notification_webhook.md +++ b/docs/commands/lagoon_add_notification_webhook.md @@ -24,18 +24,21 @@ lagoon add notification webhook [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_organization-administrator.md b/docs/commands/lagoon_add_organization-administrator.md index 038a2f5a..f4e2ed18 100644 --- a/docs/commands/lagoon_add_organization-administrator.md +++ b/docs/commands/lagoon_add_organization-administrator.md @@ -22,18 +22,21 @@ lagoon add organization-administrator [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_organization-deploytarget.md b/docs/commands/lagoon_add_organization-deploytarget.md index 34ce6973..ee260124 100644 --- a/docs/commands/lagoon_add_organization-deploytarget.md +++ b/docs/commands/lagoon_add_organization-deploytarget.md @@ -17,18 +17,21 @@ lagoon add organization-deploytarget [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_organization.md b/docs/commands/lagoon_add_organization.md index b7faf987..da76c335 100644 --- a/docs/commands/lagoon_add_organization.md +++ b/docs/commands/lagoon_add_organization.md @@ -23,18 +23,21 @@ lagoon add organization [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_project-group.md b/docs/commands/lagoon_add_project-group.md index 09f83c8a..8c3cf964 100644 --- a/docs/commands/lagoon_add_project-group.md +++ b/docs/commands/lagoon_add_project-group.md @@ -16,18 +16,21 @@ lagoon add project-group [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_project.md b/docs/commands/lagoon_add_project.md index 72661d85..d2e40342 100644 --- a/docs/commands/lagoon_add_project.md +++ b/docs/commands/lagoon_add_project.md @@ -17,12 +17,12 @@ lagoon add project [flags] -a, --auto-idle uint Auto idle setting of the project -b, --branches string Which branches should be deployed --build-image string Build Image for the project + -S, --deploytarget uint Reference to Deploytarget(Kubernetes) target this Project should be deployed to + --deploytarget-project-pattern string Pattern of Deploytarget(Kubernetes) Project/Namespace that should be generated -L, --development-environments-limit uint How many environments can be deployed at one time -g, --git-url string GitURL of the project -h, --help help for project -j, --json string JSON string to patch - -S, --openshift uint Reference to OpenShift Object this Project should be deployed to - -o, --openshift-project-pattern string Pattern of OpenShift Project/Namespace that should be generated --organization-id uint ID of the Organization to add the project to -O, --organization-name string Name of the Organization to add the project to --owner Add the user as an owner of the project @@ -38,18 +38,21 @@ lagoon add project [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_user-group.md b/docs/commands/lagoon_add_user-group.md index 188232a1..68e6b8c8 100644 --- a/docs/commands/lagoon_add_user-group.md +++ b/docs/commands/lagoon_add_user-group.md @@ -18,18 +18,21 @@ lagoon add user-group [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_user-sshkey.md b/docs/commands/lagoon_add_user-sshkey.md index b250ee75..335f4b6b 100644 --- a/docs/commands/lagoon_add_user-sshkey.md +++ b/docs/commands/lagoon_add_user-sshkey.md @@ -38,18 +38,21 @@ lagoon add user-sshkey [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_add_user.md b/docs/commands/lagoon_add_user.md index 71fff3c9..ae6fe2ef 100644 --- a/docs/commands/lagoon_add_user.md +++ b/docs/commands/lagoon_add_user.md @@ -19,18 +19,21 @@ lagoon add user [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_completion.md b/docs/commands/lagoon_completion.md index 4e70f406..dfc30c23 100644 --- a/docs/commands/lagoon_completion.md +++ b/docs/commands/lagoon_completion.md @@ -17,18 +17,21 @@ See each sub-command's help for details on how to use the generated script. ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_completion_bash.md b/docs/commands/lagoon_completion_bash.md index 82636e81..a2773274 100644 --- a/docs/commands/lagoon_completion_bash.md +++ b/docs/commands/lagoon_completion_bash.md @@ -40,18 +40,21 @@ lagoon completion bash ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_completion_fish.md b/docs/commands/lagoon_completion_fish.md index 5424f780..5d0e4cb8 100644 --- a/docs/commands/lagoon_completion_fish.md +++ b/docs/commands/lagoon_completion_fish.md @@ -31,18 +31,21 @@ lagoon completion fish [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_completion_powershell.md b/docs/commands/lagoon_completion_powershell.md index 5714643c..c5c4b77b 100644 --- a/docs/commands/lagoon_completion_powershell.md +++ b/docs/commands/lagoon_completion_powershell.md @@ -28,18 +28,21 @@ lagoon completion powershell [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_completion_zsh.md b/docs/commands/lagoon_completion_zsh.md index 06efcde8..ed096bf2 100644 --- a/docs/commands/lagoon_completion_zsh.md +++ b/docs/commands/lagoon_completion_zsh.md @@ -42,18 +42,21 @@ lagoon completion zsh [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_config.md b/docs/commands/lagoon_config.md index 8643e4be..e2663d7c 100644 --- a/docs/commands/lagoon_config.md +++ b/docs/commands/lagoon_config.md @@ -11,18 +11,21 @@ Configure Lagoon CLI ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_config_add.md b/docs/commands/lagoon_config_add.md index d943a3a8..4654c871 100644 --- a/docs/commands/lagoon_config_add.md +++ b/docs/commands/lagoon_config_add.md @@ -9,31 +9,35 @@ lagoon config add [flags] ### Options ``` - --create-config Create the config file if it is non existent (to be used with --config-file) - -g, --graphql string Lagoon GraphQL endpoint - -h, --help help for add - -H, --hostname string Lagoon SSH hostname - -k, --kibana string Lagoon Kibana URL (https://logs.amazeeio.cloud) - -P, --port string Lagoon SSH port - --ssh-key string SSH Key to use for this cluster for generating tokens - -t, --token string Lagoon GraphQL token - -u, --ui string Lagoon UI location (https://dashboard.amazeeio.cloud) + --create-config Create the config file if it is non existent (to be used with --config-file) + -g, --graphql string Lagoon GraphQL endpoint + -h, --help help for add + -H, --hostname string Lagoon SSH hostname + -k, --kibana string Lagoon Kibana URL (https://logs.amazeeio.cloud) + -P, --port string Lagoon SSH port + --publickey-identityfile strings Specific public key identity files to use when doing ssh-agent checks (support multiple) + --ssh-key string SSH Key to use for this cluster for generating tokens + -t, --token string Lagoon GraphQL token + -u, --ui string Lagoon UI location (https://dashboard.amazeeio.cloud) ``` ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_config_current.md b/docs/commands/lagoon_config_current.md index 131676ba..ca3f87e2 100644 --- a/docs/commands/lagoon_config_current.md +++ b/docs/commands/lagoon_config_current.md @@ -15,18 +15,21 @@ lagoon config current [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_config_default.md b/docs/commands/lagoon_config_default.md index 4470afc0..6599ae93 100644 --- a/docs/commands/lagoon_config_default.md +++ b/docs/commands/lagoon_config_default.md @@ -15,18 +15,21 @@ lagoon config default [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_config_delete.md b/docs/commands/lagoon_config_delete.md index e4ef3ad6..06b5b2c0 100644 --- a/docs/commands/lagoon_config_delete.md +++ b/docs/commands/lagoon_config_delete.md @@ -15,18 +15,21 @@ lagoon config delete [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_config_feature.md b/docs/commands/lagoon_config_feature.md index ef5963b4..40c178b8 100644 --- a/docs/commands/lagoon_config_feature.md +++ b/docs/commands/lagoon_config_feature.md @@ -17,18 +17,21 @@ lagoon config feature [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_config_lagoon-version.md b/docs/commands/lagoon_config_lagoon-version.md index 197fac46..4ff546ae 100644 --- a/docs/commands/lagoon_config_lagoon-version.md +++ b/docs/commands/lagoon_config_lagoon-version.md @@ -15,18 +15,21 @@ lagoon config lagoon-version [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_config_list.md b/docs/commands/lagoon_config_list.md index c9299137..b12f5aa9 100644 --- a/docs/commands/lagoon_config_list.md +++ b/docs/commands/lagoon_config_list.md @@ -16,18 +16,21 @@ lagoon config list [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete.md b/docs/commands/lagoon_delete.md index 90ac6221..660c35d9 100644 --- a/docs/commands/lagoon_delete.md +++ b/docs/commands/lagoon_delete.md @@ -11,18 +11,21 @@ Delete a project, or delete notifications and variables from projects or environ ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_deploytarget-config.md b/docs/commands/lagoon_delete_deploytarget-config.md index 9926bb6a..6b045667 100644 --- a/docs/commands/lagoon_delete_deploytarget-config.md +++ b/docs/commands/lagoon_delete_deploytarget-config.md @@ -16,18 +16,21 @@ lagoon delete deploytarget-config [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_deploytarget.md b/docs/commands/lagoon_delete_deploytarget.md index 521d0f76..eac38787 100644 --- a/docs/commands/lagoon_delete_deploytarget.md +++ b/docs/commands/lagoon_delete_deploytarget.md @@ -4,7 +4,7 @@ Delete a DeployTarget from lagoon ### Synopsis -Delete a DeployTarget (kubernetes or openshift) from lagoon, this requires admin level permissions +Delete a Deploytarget(Kubernetes) from lagoon, this requires admin level permissions ``` lagoon delete deploytarget [flags] @@ -21,18 +21,21 @@ lagoon delete deploytarget [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_environment.md b/docs/commands/lagoon_delete_environment.md index e8541a95..1918324d 100644 --- a/docs/commands/lagoon_delete_environment.md +++ b/docs/commands/lagoon_delete_environment.md @@ -15,18 +15,21 @@ lagoon delete environment [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_group.md b/docs/commands/lagoon_delete_group.md index e5971d01..9e32632e 100644 --- a/docs/commands/lagoon_delete_group.md +++ b/docs/commands/lagoon_delete_group.md @@ -16,18 +16,21 @@ lagoon delete group [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification.md b/docs/commands/lagoon_delete_notification.md index ff16d778..e9ac3a87 100644 --- a/docs/commands/lagoon_delete_notification.md +++ b/docs/commands/lagoon_delete_notification.md @@ -11,18 +11,21 @@ Delete notifications or delete notifications from projects ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification_email.md b/docs/commands/lagoon_delete_notification_email.md index a353dd87..1efcb471 100644 --- a/docs/commands/lagoon_delete_notification_email.md +++ b/docs/commands/lagoon_delete_notification_email.md @@ -16,18 +16,21 @@ lagoon delete notification email [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification_microsoftteams.md b/docs/commands/lagoon_delete_notification_microsoftteams.md index 40f2d3e3..168fadc2 100644 --- a/docs/commands/lagoon_delete_notification_microsoftteams.md +++ b/docs/commands/lagoon_delete_notification_microsoftteams.md @@ -16,18 +16,21 @@ lagoon delete notification microsoftteams [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification_project-email.md b/docs/commands/lagoon_delete_notification_project-email.md index 6dd0f35b..5b688c13 100644 --- a/docs/commands/lagoon_delete_notification_project-email.md +++ b/docs/commands/lagoon_delete_notification_project-email.md @@ -16,18 +16,21 @@ lagoon delete notification project-email [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification_project-microsoftteams.md b/docs/commands/lagoon_delete_notification_project-microsoftteams.md index 75df803b..0e5c23b2 100644 --- a/docs/commands/lagoon_delete_notification_project-microsoftteams.md +++ b/docs/commands/lagoon_delete_notification_project-microsoftteams.md @@ -16,18 +16,21 @@ lagoon delete notification project-microsoftteams [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification_project-rocketchat.md b/docs/commands/lagoon_delete_notification_project-rocketchat.md index 5ae35e26..63720b95 100644 --- a/docs/commands/lagoon_delete_notification_project-rocketchat.md +++ b/docs/commands/lagoon_delete_notification_project-rocketchat.md @@ -16,18 +16,21 @@ lagoon delete notification project-rocketchat [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification_project-slack.md b/docs/commands/lagoon_delete_notification_project-slack.md index 631ca14d..ac8a7c53 100644 --- a/docs/commands/lagoon_delete_notification_project-slack.md +++ b/docs/commands/lagoon_delete_notification_project-slack.md @@ -16,18 +16,21 @@ lagoon delete notification project-slack [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification_project-webhook.md b/docs/commands/lagoon_delete_notification_project-webhook.md index c5c75b99..cce03cc6 100644 --- a/docs/commands/lagoon_delete_notification_project-webhook.md +++ b/docs/commands/lagoon_delete_notification_project-webhook.md @@ -16,18 +16,21 @@ lagoon delete notification project-webhook [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification_rocketchat.md b/docs/commands/lagoon_delete_notification_rocketchat.md index 71bb8718..238a6c4d 100644 --- a/docs/commands/lagoon_delete_notification_rocketchat.md +++ b/docs/commands/lagoon_delete_notification_rocketchat.md @@ -16,18 +16,21 @@ lagoon delete notification rocketchat [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification_slack.md b/docs/commands/lagoon_delete_notification_slack.md index a81e7767..4454b706 100644 --- a/docs/commands/lagoon_delete_notification_slack.md +++ b/docs/commands/lagoon_delete_notification_slack.md @@ -16,18 +16,21 @@ lagoon delete notification slack [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_notification_webhook.md b/docs/commands/lagoon_delete_notification_webhook.md index 88de851a..ac39934d 100644 --- a/docs/commands/lagoon_delete_notification_webhook.md +++ b/docs/commands/lagoon_delete_notification_webhook.md @@ -16,18 +16,21 @@ lagoon delete notification webhook [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_organization-administrator.md b/docs/commands/lagoon_delete_organization-administrator.md index abf01997..028d01cb 100644 --- a/docs/commands/lagoon_delete_organization-administrator.md +++ b/docs/commands/lagoon_delete_organization-administrator.md @@ -18,18 +18,21 @@ lagoon delete organization-administrator [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_organization-deploytarget.md b/docs/commands/lagoon_delete_organization-deploytarget.md index 6a7e2fe9..40933e2d 100644 --- a/docs/commands/lagoon_delete_organization-deploytarget.md +++ b/docs/commands/lagoon_delete_organization-deploytarget.md @@ -17,18 +17,21 @@ lagoon delete organization-deploytarget [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_organization-project.md b/docs/commands/lagoon_delete_organization-project.md index 440bc5f2..a24c5cff 100644 --- a/docs/commands/lagoon_delete_organization-project.md +++ b/docs/commands/lagoon_delete_organization-project.md @@ -21,18 +21,21 @@ lagoon delete organization-project [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_organization.md b/docs/commands/lagoon_delete_organization.md index 92d88b2c..35b80e38 100644 --- a/docs/commands/lagoon_delete_organization.md +++ b/docs/commands/lagoon_delete_organization.md @@ -16,18 +16,21 @@ lagoon delete organization [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_project-group.md b/docs/commands/lagoon_delete_project-group.md index 4a9d8ef6..c08e07dd 100644 --- a/docs/commands/lagoon_delete_project-group.md +++ b/docs/commands/lagoon_delete_project-group.md @@ -16,18 +16,21 @@ lagoon delete project-group [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_project-metadata.md b/docs/commands/lagoon_delete_project-metadata.md index 52c60193..2255b11b 100644 --- a/docs/commands/lagoon_delete_project-metadata.md +++ b/docs/commands/lagoon_delete_project-metadata.md @@ -16,18 +16,21 @@ lagoon delete project-metadata [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_project.md b/docs/commands/lagoon_delete_project.md index 971b534f..76eb74cf 100644 --- a/docs/commands/lagoon_delete_project.md +++ b/docs/commands/lagoon_delete_project.md @@ -15,18 +15,21 @@ lagoon delete project [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_user-group.md b/docs/commands/lagoon_delete_user-group.md index 7a29fd96..0e357341 100644 --- a/docs/commands/lagoon_delete_user-group.md +++ b/docs/commands/lagoon_delete_user-group.md @@ -17,18 +17,21 @@ lagoon delete user-group [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_user-sshkey.md b/docs/commands/lagoon_delete_user-sshkey.md index f4e03a3f..b9bc4695 100644 --- a/docs/commands/lagoon_delete_user-sshkey.md +++ b/docs/commands/lagoon_delete_user-sshkey.md @@ -16,18 +16,21 @@ lagoon delete user-sshkey [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_user.md b/docs/commands/lagoon_delete_user.md index 762e8010..47877764 100644 --- a/docs/commands/lagoon_delete_user.md +++ b/docs/commands/lagoon_delete_user.md @@ -16,18 +16,21 @@ lagoon delete user [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_delete_variable.md b/docs/commands/lagoon_delete_variable.md index 373722f8..dfda4a68 100644 --- a/docs/commands/lagoon_delete_variable.md +++ b/docs/commands/lagoon_delete_variable.md @@ -20,18 +20,21 @@ lagoon delete variable [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_deploy.md b/docs/commands/lagoon_deploy.md index 3337154e..8e884029 100644 --- a/docs/commands/lagoon_deploy.md +++ b/docs/commands/lagoon_deploy.md @@ -11,18 +11,21 @@ Actions for deploying or promoting branches or environments in lagoon ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_deploy_branch.md b/docs/commands/lagoon_deploy_branch.md index 81ac0548..10997814 100644 --- a/docs/commands/lagoon_deploy_branch.md +++ b/docs/commands/lagoon_deploy_branch.md @@ -16,27 +16,30 @@ lagoon deploy branch [flags] ``` -b, --branch string Branch name to deploy - -r, --branchRef string Branch ref to deploy + -r, --branch-ref string Branch ref to deploy --buildvar stringArray Add one or more build variables to deployment (--buildvar KEY1=VALUE1 [--buildvar KEY2=VALUE2]) -h, --help help for branch - --returnData Returns the build name instead of success text + --returndata Returns the build name instead of success text ``` ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_deploy_latest.md b/docs/commands/lagoon_deploy_latest.md index 38edfa69..e70bf71e 100644 --- a/docs/commands/lagoon_deploy_latest.md +++ b/docs/commands/lagoon_deploy_latest.md @@ -16,24 +16,27 @@ lagoon deploy latest [flags] ``` --buildvar stringArray Add one or more build variables to deployment (--buildvar KEY1=VALUE1 [--buildvar KEY2=VALUE2]) -h, --help help for latest - --returnData Returns the build name instead of success text + --returndata Returns the build name instead of success text ``` ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_deploy_promote.md b/docs/commands/lagoon_deploy_promote.md index 1a334238..709a17d0 100644 --- a/docs/commands/lagoon_deploy_promote.md +++ b/docs/commands/lagoon_deploy_promote.md @@ -16,25 +16,28 @@ lagoon deploy promote [flags] --buildvar stringArray Add one or more build variables to deployment (--buildvar KEY1=VALUE1 [--buildvar KEY2=VALUE2]) -d, --destination string Destination environment name to create -h, --help help for promote - --returnData Returns the build name instead of success text + --returndata Returns the build name instead of success text -s, --source string Source environment name to use as the base to deploy from ``` ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_deploy_pullrequest.md b/docs/commands/lagoon_deploy_pullrequest.md index 260f24d3..f7d2d56e 100644 --- a/docs/commands/lagoon_deploy_pullrequest.md +++ b/docs/commands/lagoon_deploy_pullrequest.md @@ -14,32 +14,35 @@ lagoon deploy pullrequest [flags] ### Options ``` - -N, --baseBranchName string Pullrequest base branch name - -R, --baseBranchRef string Pullrequest base branch reference hash - --buildvar stringArray Add one or more build variables to deployment (--buildvar KEY1=VALUE1 [--buildvar KEY2=VALUE2]) - -H, --headBranchName string Pullrequest head branch name - -M, --headBranchRef string Pullrequest head branch reference hash - -h, --help help for pullrequest - -n, --number uint Pullrequest number - --returnData Returns the build name instead of success text - -t, --title string Pullrequest title + -N, --base-branch-name string Pullrequest base branch name + -R, --base-branch-ref string Pullrequest base branch reference hash + --buildvar stringArray Add one or more build variables to deployment (--buildvar KEY1=VALUE1 [--buildvar KEY2=VALUE2]) + -H, --head-branch-name string Pullrequest head branch name + -M, --head-branch-ref string Pullrequest head branch reference hash + -h, --help help for pullrequest + -n, --number uint Pullrequest number + --returndata Returns the build name instead of success text + -t, --title string Pullrequest title ``` ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_export.md b/docs/commands/lagoon_export.md index 6d850c31..b9ae34dc 100644 --- a/docs/commands/lagoon_export.md +++ b/docs/commands/lagoon_export.md @@ -21,18 +21,21 @@ lagoon export [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get.md b/docs/commands/lagoon_get.md index f497f071..d6493114 100644 --- a/docs/commands/lagoon_get.md +++ b/docs/commands/lagoon_get.md @@ -11,18 +11,21 @@ Get info on a resource ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_all-user-sshkeys.md b/docs/commands/lagoon_get_all-user-sshkeys.md index 64bfeb1e..667171b5 100644 --- a/docs/commands/lagoon_get_all-user-sshkeys.md +++ b/docs/commands/lagoon_get_all-user-sshkeys.md @@ -20,18 +20,21 @@ lagoon get all-user-sshkeys [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_backup.md b/docs/commands/lagoon_get_backup.md index a83bfb8a..066abf62 100644 --- a/docs/commands/lagoon_get_backup.md +++ b/docs/commands/lagoon_get_backup.md @@ -21,18 +21,21 @@ lagoon get backup [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_deployment.md b/docs/commands/lagoon_get_deployment.md index 5bdbcc47..2f51c3cb 100644 --- a/docs/commands/lagoon_get_deployment.md +++ b/docs/commands/lagoon_get_deployment.md @@ -22,18 +22,21 @@ lagoon get deployment [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_environment.md b/docs/commands/lagoon_get_environment.md index fdcee352..85d37874 100644 --- a/docs/commands/lagoon_get_environment.md +++ b/docs/commands/lagoon_get_environment.md @@ -15,18 +15,21 @@ lagoon get environment [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_organization.md b/docs/commands/lagoon_get_organization.md index 291004de..d0488d7e 100644 --- a/docs/commands/lagoon_get_organization.md +++ b/docs/commands/lagoon_get_organization.md @@ -16,18 +16,21 @@ lagoon get organization [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_project-key.md b/docs/commands/lagoon_get_project-key.md index 4526aba8..fb33aa4d 100644 --- a/docs/commands/lagoon_get_project-key.md +++ b/docs/commands/lagoon_get_project-key.md @@ -16,18 +16,21 @@ lagoon get project-key [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_project-metadata.md b/docs/commands/lagoon_get_project-metadata.md index 233d7eea..b1b97928 100644 --- a/docs/commands/lagoon_get_project-metadata.md +++ b/docs/commands/lagoon_get_project-metadata.md @@ -15,18 +15,21 @@ lagoon get project-metadata [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_project.md b/docs/commands/lagoon_get_project.md index f67b82bd..8c0cb54a 100644 --- a/docs/commands/lagoon_get_project.md +++ b/docs/commands/lagoon_get_project.md @@ -15,18 +15,21 @@ lagoon get project [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_task-by-id.md b/docs/commands/lagoon_get_task-by-id.md index b6bc9c86..30af8a65 100644 --- a/docs/commands/lagoon_get_task-by-id.md +++ b/docs/commands/lagoon_get_task-by-id.md @@ -21,18 +21,21 @@ lagoon get task-by-id [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_token.md b/docs/commands/lagoon_get_token.md index 2aa1dc8e..11e62a4c 100644 --- a/docs/commands/lagoon_get_token.md +++ b/docs/commands/lagoon_get_token.md @@ -15,18 +15,21 @@ lagoon get token [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_get_user-sshkeys.md b/docs/commands/lagoon_get_user-sshkeys.md index c38f2c3a..17799632 100644 --- a/docs/commands/lagoon_get_user-sshkeys.md +++ b/docs/commands/lagoon_get_user-sshkeys.md @@ -20,18 +20,21 @@ lagoon get user-sshkeys [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_import.md b/docs/commands/lagoon_import.md index fbcd8e90..05d14138 100644 --- a/docs/commands/lagoon_import.md +++ b/docs/commands/lagoon_import.md @@ -15,27 +15,30 @@ lagoon import [flags] ### Options ``` - -h, --help help for import - -I, --import-file string path to the file to import - --keep-going on error, just log and continue instead of aborting - --openshiftID uint ID of the openshift to target for import + --deploytarget-id uint ID of the deploytarget to target for import + -h, --help help for import + -I, --import-file string path to the file to import + --keep-going on error, just log and continue instead of aborting ``` ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_kibana.md b/docs/commands/lagoon_kibana.md index 17f2dd33..6274fa59 100644 --- a/docs/commands/lagoon_kibana.md +++ b/docs/commands/lagoon_kibana.md @@ -15,18 +15,21 @@ lagoon kibana [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list.md b/docs/commands/lagoon_list.md index fbf25ee9..06f84d68 100644 --- a/docs/commands/lagoon_list.md +++ b/docs/commands/lagoon_list.md @@ -12,18 +12,21 @@ List projects, environments, deployments, variables or notifications ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_all-users.md b/docs/commands/lagoon_list_all-users.md index 98974c30..70d80183 100644 --- a/docs/commands/lagoon_list_all-users.md +++ b/docs/commands/lagoon_list_all-users.md @@ -21,18 +21,21 @@ lagoon list all-users [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_backups.md b/docs/commands/lagoon_list_backups.md index 4bf5233a..6913cc4d 100644 --- a/docs/commands/lagoon_list_backups.md +++ b/docs/commands/lagoon_list_backups.md @@ -15,18 +15,21 @@ lagoon list backups [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_deployments.md b/docs/commands/lagoon_list_deployments.md index 46149efc..1251d348 100644 --- a/docs/commands/lagoon_list_deployments.md +++ b/docs/commands/lagoon_list_deployments.md @@ -15,18 +15,21 @@ lagoon list deployments [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_deploytarget-configs.md b/docs/commands/lagoon_list_deploytarget-configs.md index da56ac4f..92fa8856 100644 --- a/docs/commands/lagoon_list_deploytarget-configs.md +++ b/docs/commands/lagoon_list_deploytarget-configs.md @@ -15,18 +15,21 @@ lagoon list deploytarget-configs [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_deploytargets.md b/docs/commands/lagoon_list_deploytargets.md index 3791e812..f4e63cd5 100644 --- a/docs/commands/lagoon_list_deploytargets.md +++ b/docs/commands/lagoon_list_deploytargets.md @@ -4,7 +4,7 @@ List all DeployTargets in Lagoon ### Synopsis -List all DeployTargets (kubernetes or openshift) in lagoon, this requires admin level permissions +List all Deploytargets(Kubernetes) in lagoon, this requires admin level permissions ``` lagoon list deploytargets [flags] @@ -19,18 +19,21 @@ lagoon list deploytargets [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_environments.md b/docs/commands/lagoon_list_environments.md index 5b790295..7d688594 100644 --- a/docs/commands/lagoon_list_environments.md +++ b/docs/commands/lagoon_list_environments.md @@ -15,18 +15,21 @@ lagoon list environments [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_group-projects.md b/docs/commands/lagoon_list_group-projects.md index 1b23f968..356d0478 100644 --- a/docs/commands/lagoon_list_group-projects.md +++ b/docs/commands/lagoon_list_group-projects.md @@ -17,18 +17,21 @@ lagoon list group-projects [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_group-users.md b/docs/commands/lagoon_list_group-users.md index e39a7bb2..4d881bd8 100644 --- a/docs/commands/lagoon_list_group-users.md +++ b/docs/commands/lagoon_list_group-users.md @@ -6,7 +6,7 @@ List all users in groups List all users in groups in lagoon, this only shows users that are in groups. If no group name is provided, all groups are queried. -Without a group name, this query may time out in large Lagoon installs. +Without a group name, this query may time out in large Lagoon instalschema. ``` lagoon list group-users [flags] @@ -22,18 +22,21 @@ lagoon list group-users [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_groups.md b/docs/commands/lagoon_list_groups.md index 9a6768ff..c4d58ffc 100644 --- a/docs/commands/lagoon_list_groups.md +++ b/docs/commands/lagoon_list_groups.md @@ -15,18 +15,21 @@ lagoon list groups [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_invokable-tasks.md b/docs/commands/lagoon_list_invokable-tasks.md index 77e92550..1b58c95a 100644 --- a/docs/commands/lagoon_list_invokable-tasks.md +++ b/docs/commands/lagoon_list_invokable-tasks.md @@ -19,18 +19,21 @@ lagoon list invokable-tasks [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification.md b/docs/commands/lagoon_list_notification.md index a0e4b341..97f117a5 100644 --- a/docs/commands/lagoon_list_notification.md +++ b/docs/commands/lagoon_list_notification.md @@ -11,18 +11,21 @@ List all notifications or notifications on projects ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification_email.md b/docs/commands/lagoon_list_notification_email.md index ca4376c9..f798f61d 100644 --- a/docs/commands/lagoon_list_notification_email.md +++ b/docs/commands/lagoon_list_notification_email.md @@ -15,18 +15,21 @@ lagoon list notification email [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification_microsoftteams.md b/docs/commands/lagoon_list_notification_microsoftteams.md index a707790a..4487c57f 100644 --- a/docs/commands/lagoon_list_notification_microsoftteams.md +++ b/docs/commands/lagoon_list_notification_microsoftteams.md @@ -15,18 +15,21 @@ lagoon list notification microsoftteams [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification_project-email.md b/docs/commands/lagoon_list_notification_project-email.md index 202bb084..e2e3b91c 100644 --- a/docs/commands/lagoon_list_notification_project-email.md +++ b/docs/commands/lagoon_list_notification_project-email.md @@ -15,18 +15,21 @@ lagoon list notification project-email [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification_project-microsoftteams.md b/docs/commands/lagoon_list_notification_project-microsoftteams.md index 2d457b37..2b10931a 100644 --- a/docs/commands/lagoon_list_notification_project-microsoftteams.md +++ b/docs/commands/lagoon_list_notification_project-microsoftteams.md @@ -15,18 +15,21 @@ lagoon list notification project-microsoftteams [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification_project-rocketchat.md b/docs/commands/lagoon_list_notification_project-rocketchat.md index 4c6f12d1..631cd904 100644 --- a/docs/commands/lagoon_list_notification_project-rocketchat.md +++ b/docs/commands/lagoon_list_notification_project-rocketchat.md @@ -15,18 +15,21 @@ lagoon list notification project-rocketchat [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification_project-slack.md b/docs/commands/lagoon_list_notification_project-slack.md index 165ceed1..a88a57e0 100644 --- a/docs/commands/lagoon_list_notification_project-slack.md +++ b/docs/commands/lagoon_list_notification_project-slack.md @@ -15,18 +15,21 @@ lagoon list notification project-slack [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification_project-webhook.md b/docs/commands/lagoon_list_notification_project-webhook.md index 4f7f5179..c519731a 100644 --- a/docs/commands/lagoon_list_notification_project-webhook.md +++ b/docs/commands/lagoon_list_notification_project-webhook.md @@ -15,18 +15,21 @@ lagoon list notification project-webhook [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification_rocketchat.md b/docs/commands/lagoon_list_notification_rocketchat.md index a36588b8..663495c2 100644 --- a/docs/commands/lagoon_list_notification_rocketchat.md +++ b/docs/commands/lagoon_list_notification_rocketchat.md @@ -15,18 +15,21 @@ lagoon list notification rocketchat [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification_slack.md b/docs/commands/lagoon_list_notification_slack.md index d7768fab..a55b57ec 100644 --- a/docs/commands/lagoon_list_notification_slack.md +++ b/docs/commands/lagoon_list_notification_slack.md @@ -15,18 +15,21 @@ lagoon list notification slack [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_notification_webhook.md b/docs/commands/lagoon_list_notification_webhook.md index 21abc1bf..54347efa 100644 --- a/docs/commands/lagoon_list_notification_webhook.md +++ b/docs/commands/lagoon_list_notification_webhook.md @@ -15,18 +15,21 @@ lagoon list notification webhook [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_organization-deploytargets.md b/docs/commands/lagoon_list_organization-deploytargets.md index cf41d429..d04cf20c 100644 --- a/docs/commands/lagoon_list_organization-deploytargets.md +++ b/docs/commands/lagoon_list_organization-deploytargets.md @@ -17,18 +17,21 @@ lagoon list organization-deploytargets [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_organization-groups.md b/docs/commands/lagoon_list_organization-groups.md index 3fbea4f8..78fd82c9 100644 --- a/docs/commands/lagoon_list_organization-groups.md +++ b/docs/commands/lagoon_list_organization-groups.md @@ -16,18 +16,21 @@ lagoon list organization-groups [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_organization-projects.md b/docs/commands/lagoon_list_organization-projects.md index 1cae1f5c..edb8e153 100644 --- a/docs/commands/lagoon_list_organization-projects.md +++ b/docs/commands/lagoon_list_organization-projects.md @@ -16,18 +16,21 @@ lagoon list organization-projects [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_organization-users.md b/docs/commands/lagoon_list_organization-users.md index 98139840..836176eb 100644 --- a/docs/commands/lagoon_list_organization-users.md +++ b/docs/commands/lagoon_list_organization-users.md @@ -16,18 +16,21 @@ lagoon list organization-users [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_organizations.md b/docs/commands/lagoon_list_organizations.md index f2bc051a..e664b31b 100644 --- a/docs/commands/lagoon_list_organizations.md +++ b/docs/commands/lagoon_list_organizations.md @@ -15,18 +15,21 @@ lagoon list organizations [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_project-groups.md b/docs/commands/lagoon_list_project-groups.md index 79ae2df2..04c11032 100644 --- a/docs/commands/lagoon_list_project-groups.md +++ b/docs/commands/lagoon_list_project-groups.md @@ -15,18 +15,21 @@ lagoon list project-groups [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_projects-by-metadata.md b/docs/commands/lagoon_list_projects-by-metadata.md index 0bd8f188..14f1d7d3 100644 --- a/docs/commands/lagoon_list_projects-by-metadata.md +++ b/docs/commands/lagoon_list_projects-by-metadata.md @@ -18,18 +18,21 @@ lagoon list projects-by-metadata [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_projects.md b/docs/commands/lagoon_list_projects.md index 067fa86c..ebc8f0a8 100644 --- a/docs/commands/lagoon_list_projects.md +++ b/docs/commands/lagoon_list_projects.md @@ -15,18 +15,21 @@ lagoon list projects [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_tasks.md b/docs/commands/lagoon_list_tasks.md index da1dd584..4c13b836 100644 --- a/docs/commands/lagoon_list_tasks.md +++ b/docs/commands/lagoon_list_tasks.md @@ -15,18 +15,21 @@ lagoon list tasks [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_user-groups.md b/docs/commands/lagoon_list_user-groups.md index 3d2a43f6..7ed85a4e 100644 --- a/docs/commands/lagoon_list_user-groups.md +++ b/docs/commands/lagoon_list_user-groups.md @@ -20,18 +20,21 @@ lagoon list user-groups [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_list_variables.md b/docs/commands/lagoon_list_variables.md index 8338972f..ca3d09a8 100644 --- a/docs/commands/lagoon_list_variables.md +++ b/docs/commands/lagoon_list_variables.md @@ -16,18 +16,21 @@ lagoon list variables [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_login.md b/docs/commands/lagoon_login.md index 90f694ba..a3399782 100644 --- a/docs/commands/lagoon_login.md +++ b/docs/commands/lagoon_login.md @@ -15,18 +15,21 @@ lagoon login [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_logs.md b/docs/commands/lagoon_logs.md new file mode 100644 index 00000000..6e2c9747 --- /dev/null +++ b/docs/commands/lagoon_logs.md @@ -0,0 +1,42 @@ +## lagoon logs + +Display logs for a service of an environment and project + +``` +lagoon logs [flags] +``` + +### Options + +``` + -c, --container string specify a specific container name + -f, --follow continue outputting new lines as they are logged + -h, --help help for logs + -n, --lines uint the number of lines to return for each container (default 32) + -s, --service string specify a specific service name +``` + +### Options inherited from parent commands + +``` + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) +``` + +### SEE ALSO + +* [lagoon](lagoon.md) - Command line integration for Lagoon + diff --git a/docs/commands/lagoon_raw.md b/docs/commands/lagoon_raw.md index 8b5c7bce..296ab650 100644 --- a/docs/commands/lagoon_raw.md +++ b/docs/commands/lagoon_raw.md @@ -21,18 +21,21 @@ lagoon raw [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_reset-password.md b/docs/commands/lagoon_reset-password.md index cae421c7..69f57a64 100644 --- a/docs/commands/lagoon_reset-password.md +++ b/docs/commands/lagoon_reset-password.md @@ -16,18 +16,21 @@ lagoon reset-password [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_retrieve.md b/docs/commands/lagoon_retrieve.md index f2930068..26836e23 100644 --- a/docs/commands/lagoon_retrieve.md +++ b/docs/commands/lagoon_retrieve.md @@ -11,18 +11,21 @@ Trigger a retrieval operation on backups ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_retrieve_backup.md b/docs/commands/lagoon_retrieve_backup.md index 0bd2594f..2a87d98f 100644 --- a/docs/commands/lagoon_retrieve_backup.md +++ b/docs/commands/lagoon_retrieve_backup.md @@ -22,18 +22,21 @@ lagoon retrieve backup [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_run.md b/docs/commands/lagoon_run.md index 34ae18a1..4d6432a4 100644 --- a/docs/commands/lagoon_run.md +++ b/docs/commands/lagoon_run.md @@ -11,18 +11,21 @@ Run a task against an environment ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_run_activestandby.md b/docs/commands/lagoon_run_activestandby.md index 3937d9f2..7672c9f8 100644 --- a/docs/commands/lagoon_run_activestandby.md +++ b/docs/commands/lagoon_run_activestandby.md @@ -21,18 +21,21 @@ lagoon run activestandby [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_run_custom.md b/docs/commands/lagoon_run_custom.md index c3c78707..f7a29253 100644 --- a/docs/commands/lagoon_run_custom.md +++ b/docs/commands/lagoon_run_custom.md @@ -33,18 +33,21 @@ lagoon run custom [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_run_drush-archivedump.md b/docs/commands/lagoon_run_drush-archivedump.md index e4bfa363..b289fcdc 100644 --- a/docs/commands/lagoon_run_drush-archivedump.md +++ b/docs/commands/lagoon_run_drush-archivedump.md @@ -15,18 +15,21 @@ lagoon run drush-archivedump [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_run_drush-cacheclear.md b/docs/commands/lagoon_run_drush-cacheclear.md index 2fa6c29c..93bba909 100644 --- a/docs/commands/lagoon_run_drush-cacheclear.md +++ b/docs/commands/lagoon_run_drush-cacheclear.md @@ -15,18 +15,21 @@ lagoon run drush-cacheclear [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_run_drush-sqldump.md b/docs/commands/lagoon_run_drush-sqldump.md index a686f9ba..0aac4d2c 100644 --- a/docs/commands/lagoon_run_drush-sqldump.md +++ b/docs/commands/lagoon_run_drush-sqldump.md @@ -15,18 +15,21 @@ lagoon run drush-sqldump [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_run_invoke.md b/docs/commands/lagoon_run_invoke.md index 9f64ffb9..41afbc27 100644 --- a/docs/commands/lagoon_run_invoke.md +++ b/docs/commands/lagoon_run_invoke.md @@ -24,18 +24,21 @@ lagoon run invoke [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_ssh.md b/docs/commands/lagoon_ssh.md index 4a73cfd9..dba9be31 100644 --- a/docs/commands/lagoon_ssh.md +++ b/docs/commands/lagoon_ssh.md @@ -19,18 +19,21 @@ lagoon ssh [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update.md b/docs/commands/lagoon_update.md index a72a6b56..b7f63923 100644 --- a/docs/commands/lagoon_update.md +++ b/docs/commands/lagoon_update.md @@ -11,18 +11,21 @@ Update a resource ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_deploytarget-config.md b/docs/commands/lagoon_update_deploytarget-config.md index 6696b3d5..4cf80e9a 100644 --- a/docs/commands/lagoon_update_deploytarget-config.md +++ b/docs/commands/lagoon_update_deploytarget-config.md @@ -20,18 +20,21 @@ lagoon update deploytarget-config [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_deploytarget.md b/docs/commands/lagoon_update_deploytarget.md index 20310564..e35a9daa 100644 --- a/docs/commands/lagoon_update_deploytarget.md +++ b/docs/commands/lagoon_update_deploytarget.md @@ -4,7 +4,7 @@ Update a DeployTarget in lagoon ### Synopsis -Update a DeployTarget (kubernetes or openshift) in lagoon, this requires admin level permissions +Update a Deploytarget(Kubernetes) in lagoon, this requires admin level permissions ``` lagoon update deploytarget [flags] @@ -29,18 +29,21 @@ lagoon update deploytarget [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_environment.md b/docs/commands/lagoon_update_environment.md index eec81629..c3decf59 100644 --- a/docs/commands/lagoon_update_environment.md +++ b/docs/commands/lagoon_update_environment.md @@ -14,7 +14,7 @@ lagoon update environment [flags] --deploy-head-ref string Updates the deploy head ref for the selected environment --deploy-title string Updates the deploy title for the selected environment --deploy-type string Update the deploy type - branch | pullrequest | promote - -d, --deploytarget uint Reference to OpenShift Object this Environment should be deployed to + -d, --deploytarget uint Reference to Deploytarget(Kubernetes) this Environment should be deployed to --environment-type string Update the environment type - production | development -h, --help help for environment --namespace string Update the namespace for the selected environment @@ -25,18 +25,21 @@ lagoon update environment [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_notification.md b/docs/commands/lagoon_update_notification.md index 54ca9b10..23eada3f 100644 --- a/docs/commands/lagoon_update_notification.md +++ b/docs/commands/lagoon_update_notification.md @@ -11,18 +11,21 @@ List all notifications or notifications on projects ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_notification_email.md b/docs/commands/lagoon_update_notification_email.md index f3a7a2e7..9049d3fe 100644 --- a/docs/commands/lagoon_update_notification_email.md +++ b/docs/commands/lagoon_update_notification_email.md @@ -18,18 +18,21 @@ lagoon update notification email [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_notification_microsoftteams.md b/docs/commands/lagoon_update_notification_microsoftteams.md index 2b295bcf..c7d900b9 100644 --- a/docs/commands/lagoon_update_notification_microsoftteams.md +++ b/docs/commands/lagoon_update_notification_microsoftteams.md @@ -18,18 +18,21 @@ lagoon update notification microsoftteams [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_notification_rocketchat.md b/docs/commands/lagoon_update_notification_rocketchat.md index 2b31bf1b..9a7f8066 100644 --- a/docs/commands/lagoon_update_notification_rocketchat.md +++ b/docs/commands/lagoon_update_notification_rocketchat.md @@ -19,18 +19,21 @@ lagoon update notification rocketchat [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_notification_slack.md b/docs/commands/lagoon_update_notification_slack.md index afe57bcc..a2d06d5b 100644 --- a/docs/commands/lagoon_update_notification_slack.md +++ b/docs/commands/lagoon_update_notification_slack.md @@ -19,18 +19,21 @@ lagoon update notification slack [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_notification_webhook.md b/docs/commands/lagoon_update_notification_webhook.md index ffd789e5..b42d1e4c 100644 --- a/docs/commands/lagoon_update_notification_webhook.md +++ b/docs/commands/lagoon_update_notification_webhook.md @@ -18,18 +18,21 @@ lagoon update notification webhook [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_organization.md b/docs/commands/lagoon_update_organization.md index 00d77203..9a223a97 100644 --- a/docs/commands/lagoon_update_organization.md +++ b/docs/commands/lagoon_update_organization.md @@ -23,18 +23,21 @@ lagoon update organization [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_project-metadata.md b/docs/commands/lagoon_update_project-metadata.md index ead69336..2e88eb48 100644 --- a/docs/commands/lagoon_update_project-metadata.md +++ b/docs/commands/lagoon_update_project-metadata.md @@ -17,18 +17,21 @@ lagoon update project-metadata [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_project.md b/docs/commands/lagoon_update_project.md index 60e940ad..7ab9897a 100644 --- a/docs/commands/lagoon_update_project.md +++ b/docs/commands/lagoon_update_project.md @@ -14,6 +14,8 @@ lagoon update project [flags] -b, --branches string Which branches should be deployed --build-image string Build Image for the project. Set to 'null' to remove the build image --deployments-disabled uint Admin only flag for disabling deployments on a project, 1 to disable deployments, 0 to enable + -S, --deploytarget uint Reference to Deploytarget(Kubernetes) this Project should be deployed to + -o, --deploytarget-project-pattern string Pattern of Deploytarget(Kubernetes) Project/Namespace that should be generated --development-build-priority uint Set the priority of the development build -L, --development-environments-limit uint How many environments can be deployed at one time --facts-ui uint Enables the Lagoon insights Facts tab in the UI. Set to 1 to enable, 0 to disable @@ -21,8 +23,6 @@ lagoon update project [flags] -h, --help help for project -j, --json string JSON string to patch -N, --name string Change the name of the project by specifying a new name (careful!) - -S, --openshift uint Reference to OpenShift Object this Project should be deployed to - -o, --openshift-project-pattern string Pattern of OpenShift Project/Namespace that should be generated -I, --private-key string Private key to use for the project --problems-ui uint Enables the Lagoon insights Problems tab in the UI. Set to 1 to enable, 0 to disable --production-build-priority uint Set the priority of the production build @@ -37,18 +37,21 @@ lagoon update project [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_user.md b/docs/commands/lagoon_update_user.md index 1f26313e..2d8a9c0e 100644 --- a/docs/commands/lagoon_update_user.md +++ b/docs/commands/lagoon_update_user.md @@ -23,18 +23,21 @@ lagoon update user [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_update_variable.md b/docs/commands/lagoon_update_variable.md index 7eb04ba8..ddcf18c6 100644 --- a/docs/commands/lagoon_update_variable.md +++ b/docs/commands/lagoon_update_variable.md @@ -18,18 +18,21 @@ lagoon update variable [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_upload.md b/docs/commands/lagoon_upload.md index b61a3c34..ac070095 100644 --- a/docs/commands/lagoon_upload.md +++ b/docs/commands/lagoon_upload.md @@ -11,18 +11,21 @@ Upload files to tasks ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_upload_task-files.md b/docs/commands/lagoon_upload_task-files.md index 453f250f..7e69ec03 100644 --- a/docs/commands/lagoon_upload_task-files.md +++ b/docs/commands/lagoon_upload_task-files.md @@ -21,18 +21,21 @@ lagoon upload task-files [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_version.md b/docs/commands/lagoon_version.md index f7afcafe..db68a7c1 100644 --- a/docs/commands/lagoon_version.md +++ b/docs/commands/lagoon_version.md @@ -15,18 +15,21 @@ lagoon version [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_web.md b/docs/commands/lagoon_web.md index e93be6a5..cb9edd92 100644 --- a/docs/commands/lagoon_web.md +++ b/docs/commands/lagoon_web.md @@ -15,18 +15,21 @@ lagoon web [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/docs/commands/lagoon_whoami.md b/docs/commands/lagoon_whoami.md index 3c2ab6c2..521c8513 100644 --- a/docs/commands/lagoon_whoami.md +++ b/docs/commands/lagoon_whoami.md @@ -21,18 +21,21 @@ lagoon whoami [flags] ### Options inherited from parent commands ``` - --config-file string Path to the config file to use (must be *.yml or *.yaml) - --debug Enable debugging output (if supported) - -e, --environment string Specify an environment to use - --force Force yes on prompts (if supported) - -l, --lagoon string The Lagoon instance to interact with - --no-header No header on table (if supported) - --output-csv Output as CSV (if supported) - --output-json Output as JSON (if supported) - --pretty Make JSON pretty (if supported) - -p, --project string Specify a project to use - --skip-update-check Skip checking for updates - -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --config-file string Path to the config file to use (must be *.yml or *.yaml) + --debug Enable debugging output (if supported) + -e, --environment string Specify an environment to use + --force Force yes on prompts (if supported) + -l, --lagoon string The Lagoon instance to interact with + --no-header No header on table (if supported) + --output-csv Output as CSV (if supported) + --output-json Output as JSON (if supported) + --pretty Make JSON pretty (if supported) + -p, --project string Specify a project to use + --skip-update-check Skip checking for updates + -i, --ssh-key string Specify path to a specific SSH key to use for lagoon authentication + --ssh-publickey string Specify path to a specific SSH public key to use for lagoon authentication using ssh-agent. + This will override any public key identities defined in configuration + -v, --verbose Enable verbose output to stderr (if supported) ``` ### SEE ALSO diff --git a/internal/lagoon/config.go b/internal/lagoon/config.go index 507fa516..60e76a06 100644 --- a/internal/lagoon/config.go +++ b/internal/lagoon/config.go @@ -11,13 +11,14 @@ type Config struct { // Context is used for each lagoon context in the config file. type Context struct { - GraphQL string `json:"graphql"` - HostName string `json:"hostname"` - UI string `json:"ui,omitempty"` - Kibana string `json:"kibana,omitempty"` - Port string `json:"port"` - Token string `json:"token,omitempty"` - Version string `json:"version,omitempty"` - SSHKey string `json:"sshkey,omitempty"` - SSHPortal bool `json:"sshPortal,omitempty"` + GraphQL string `json:"graphql"` + HostName string `json:"hostname"` + UI string `json:"ui,omitempty"` + Kibana string `json:"kibana,omitempty"` + Port string `json:"port"` + Token string `json:"token,omitempty"` + Version string `json:"version,omitempty"` + SSHKey string `json:"sshkey,omitempty"` + SSHPortal bool `json:"sshPortal,omitempty"` + PublicKeyIdentities []string `json:"publickeyidentities,omitempty"` } diff --git a/local-dev/config.tpl b/local-dev/config.tpl new file mode 100644 index 00000000..0e1a6efa --- /dev/null +++ b/local-dev/config.tpl @@ -0,0 +1,8 @@ +current: test +default: test +lagoons: + test: + graphql: "http://localhost:3000/graphql" + hostname: "localhost" + port: "2020" + token: ${TOKEN} diff --git a/pkg/output/main.go b/pkg/output/main.go index e40e24f0..f8bceed7 100644 --- a/pkg/output/main.go +++ b/pkg/output/main.go @@ -1,11 +1,14 @@ package output import ( + "bytes" "encoding/json" "fmt" "os" "strings" + "github.com/spf13/cobra" + "github.com/jedib0t/go-pretty/v6/table" "github.com/logrusorgru/aurora" ) @@ -39,7 +42,7 @@ type Result struct { } // RenderJSON . -func RenderJSON(data interface{}, opts Options) { +func RenderJSON(data interface{}, opts Options) string { var jsonBytes []byte var err error if opts.Pretty { @@ -53,62 +56,90 @@ func RenderJSON(data interface{}, opts Options) { panic(err) } } - fmt.Println(string(jsonBytes)) + return string(jsonBytes) +} + +// JSONTestData for use with api tests. +func JSONTestData(data interface{}, opts Options, cmd *cobra.Command) { + var jsonBytes []byte + var err error + if opts.Pretty { + jsonBytes, err = json.MarshalIndent(data, "", " ") + if err != nil { + panic(err) + } + } else { + jsonBytes, err = json.Marshal(data) + if err != nil { + panic(err) + } + } + // Allows output to be captured for tests + fmt.Fprintf(cmd.OutOrStdout(), string(jsonBytes)) } // RenderError . -func RenderError(errorMsg string, opts Options) { +func RenderError(errorMsg string, opts Options, cmd ...*cobra.Command) { if opts.JSON { jsonData := Result{ Error: trimQuotes(errorMsg), } - RenderJSON(jsonData, opts) + if cmd != nil { + JSONTestData(jsonData, opts, cmd[0]) + } else { + RenderJSON(jsonData, opts) + } } else { - //fmt.Println(fmt.Sprintf("Error: %s", aurora.Yellow(trimQuotes(errorMsg)))) - fmt.Println("Error:", trimQuotes(errorMsg)) + os.Stderr.WriteString(fmt.Sprintf("Error: %s", trimQuotes(errorMsg))) } } // RenderInfo . -func RenderInfo(infoMsg string, opts Options) { +func RenderInfo(infoMsg string, opts Options, cmd ...*cobra.Command) { if opts.JSON { jsonData := Result{ Info: trimQuotes(infoMsg), } - RenderJSON(jsonData, opts) + if cmd != nil { + JSONTestData(jsonData, opts, cmd[0]) + } else { + RenderJSON(jsonData, opts) + } } else { - fmt.Println("Info:", trimQuotes(infoMsg)) + os.Stderr.WriteString(fmt.Sprintf("Info: %s", trimQuotes(infoMsg))) } } // RenderResult . -func RenderResult(result Result, opts Options) { +func RenderResult(result Result, opts Options) string { + var out bytes.Buffer if opts.JSON { - RenderJSON(result, opts) + return RenderJSON(result, opts) } else { if trimQuotes(result.Result) == "success" { - fmt.Printf("Result: %s\n", aurora.Green(trimQuotes(result.Result))) + out.WriteString(fmt.Sprintf("Result: %s\n", aurora.Green(trimQuotes(result.Result)))) if len(result.ResultData) != 0 { for k, v := range result.ResultData { - fmt.Printf("%s: %v\n", k, v) + out.WriteString(fmt.Sprintf("%s: %v\n", k, v)) } } } else { fmt.Printf("Result: %s\n", aurora.Yellow(trimQuotes(result.Result))) if len(result.ResultData) != 0 { for k, v := range result.ResultData { - fmt.Printf("%s: %v\n", k, v) + out.WriteString(fmt.Sprintf("%s: %v\n", k, v)) } } } } - + return out.String() } // RenderOutput . -func RenderOutput(data Table, opts Options) { +func RenderOutput(data Table, opts Options) string { + var out bytes.Buffer if opts.Debug { - fmt.Printf("%s\n", aurora.Yellow("Final result:")) + out.WriteString(fmt.Sprintf("%s\n", aurora.Yellow("Final result:"))) } if opts.JSON { // really basic tabledata to json implementation @@ -124,7 +155,7 @@ func RenderOutput(data Table, opts Options) { returnedData := map[string]interface{}{ "data": rawData, } - RenderJSON(returnedData, opts) + return RenderJSON(returnedData, opts) } else { // otherwise render a table if opts.Error != "" { @@ -139,7 +170,7 @@ func RenderOutput(data Table, opts Options) { } t.AppendHeader(hRow) } - t.SetOutputMirror(os.Stdout) + t.SetOutputMirror(&out) for _, rowData := range data.Data { var dRow table.Row for _, k := range rowData { @@ -164,9 +195,10 @@ func RenderOutput(data Table, opts Options) { if opts.CSV { t.RenderCSV() - return + return out.String() } t.Render() + return out.String() } } diff --git a/pkg/output/main_test.go b/pkg/output/main_test.go index 37a1e886..2c295957 100644 --- a/pkg/output/main_test.go +++ b/pkg/output/main_test.go @@ -20,132 +20,105 @@ func checkEqual(t *testing.T, got, want interface{}, msgs ...interface{}) { } } +func TestRenderJSON(t *testing.T) { + var testData = `Error Message` + var testSuccess = `{ + "error": "Error Message" +}` + outputOptions := Options{ + Header: false, + CSV: false, + JSON: true, + Pretty: true, + } + + jsonData := Result{ + Error: trimQuotes(testData), + } + output := RenderJSON(jsonData, outputOptions) + if output != testSuccess { + checkEqual(t, output, testSuccess, " render error json processing failed") + } +} + func TestRenderError(t *testing.T) { var testData = `Error Message` - var testSuccess1 = `{"error":"Error Message"} -` - var testSuccess2 = `Error: Error Message -` + var testSuccess = `Error: Error Message` outputOptions := Options{ Header: false, CSV: false, - JSON: true, + JSON: false, Pretty: false, } - rescueStdout := os.Stdout - r, w, _ := os.Pipe() - os.Stdout = w - RenderError(testData, outputOptions) - w.Close() - out, _ := io.ReadAll(r) - os.Stdout = rescueStdout - if string(out) != testSuccess1 { - checkEqual(t, string(out), testSuccess1, " render error json processing failed") - } - outputOptions.JSON = false - rescueStdout = os.Stdout - r, w, _ = os.Pipe() - os.Stdout = w + rescueStdout := os.Stderr + r, w, _ := os.Pipe() + defer func() { + os.Stderr = rescueStdout + }() + os.Stderr = w RenderError(testData, outputOptions) w.Close() - out, _ = io.ReadAll(r) - os.Stdout = rescueStdout - if string(out) != testSuccess2 { - checkEqual(t, string(out), testSuccess2, " render error stdout processing failed") + var out bytes.Buffer + io.Copy(&out, r) + if out.String() != testSuccess { + checkEqual(t, out.String(), testSuccess, " render error stdout processing failed") } } func TestRenderInfo(t *testing.T) { var testData = `Info Message` - var testSuccess1 = `{"info":"Info Message"} -` - var testSuccess2 = `Info: Info Message -` + var testSuccess1 = `Info: Info Message` outputOptions := Options{ Header: false, CSV: false, - JSON: true, + JSON: false, Pretty: false, } - rescueStdout := os.Stdout - r, w, _ := os.Pipe() - os.Stdout = w - RenderInfo(testData, outputOptions) - w.Close() - out, _ := io.ReadAll(r) - os.Stdout = rescueStdout - if string(out) != testSuccess1 { - checkEqual(t, string(out), testSuccess1, " render info json processing failed") - } - outputOptions.JSON = false - rescueStdout = os.Stdout - r, w, _ = os.Pipe() - os.Stdout = w + rescueStdout := os.Stderr + r, w, _ := os.Pipe() + defer func() { + os.Stderr = rescueStdout + }() + os.Stderr = w RenderInfo(testData, outputOptions) w.Close() - out, _ = io.ReadAll(r) - os.Stdout = rescueStdout - if string(out) != testSuccess2 { - checkEqual(t, string(out), testSuccess2, " render info stdout processing failed") + var out bytes.Buffer + io.Copy(&out, r) + if out.String() != testSuccess1 { + checkEqual(t, out.String(), testSuccess1, " render info stdout processing failed") } } func TestRenderOutput(t *testing.T) { var testData = `{"header":["NID","NotificationName","Channel","Webhook"],"data":[["1","amazeeio--lagoon-local-ci","lagoon-local-ci","https://amazeeio.rocket.chat/hooks/ikF5XMohDZK7KpsZf/c9BFBt2ch8oMMuycoERJQMSLTPo8nmZhg2Hf2ny68ZpuD4Kn"]]}` - var testSuccess1 = `{"data":[{"channel":"lagoon-local-ci","nid":"1","notificationname":"amazeeio--lagoon-local-ci","webhook":"https://amazeeio.rocket.chat/hooks/ikF5XMohDZK7KpsZf/c9BFBt2ch8oMMuycoERJQMSLTPo8nmZhg2Hf2ny68ZpuD4Kn"}]} -` - var testSuccess2 = `NID NOTIFICATIONNAME CHANNEL WEBHOOK + var testSuccess1 = `NID NOTIFICATIONNAME CHANNEL WEBHOOK 1 amazeeio--lagoon-local-ci lagoon-local-ci https://amazeeio.rocket.chat/hooks/ikF5XMohDZK7KpsZf/c9BFBt2ch8oMMuycoERJQMSLTPo8nmZhg2Hf2ny68ZpuD4Kn ` - var testSuccess3 = `1 amazeeio--lagoon-local-ci lagoon-local-ci https://amazeeio.rocket.chat/hooks/ikF5XMohDZK7KpsZf/c9BFBt2ch8oMMuycoERJQMSLTPo8nmZhg2Hf2ny68ZpuD4Kn + var testSuccess2 = `1 amazeeio--lagoon-local-ci lagoon-local-ci https://amazeeio.rocket.chat/hooks/ikF5XMohDZK7KpsZf/c9BFBt2ch8oMMuycoERJQMSLTPo8nmZhg2Hf2ny68ZpuD4Kn ` outputOptions := Options{ Header: false, CSV: false, - JSON: true, + JSON: false, Pretty: false, } var dataMain Table json.Unmarshal([]byte(testData), &dataMain) - rescueStdout := os.Stdout - r, w, _ := os.Pipe() - os.Stdout = w - RenderOutput(dataMain, outputOptions) - w.Close() - out, _ := io.ReadAll(r) - os.Stdout = rescueStdout - if string(out) != testSuccess1 { - checkEqual(t, string(out), testSuccess1, " render output json processing failed") - } - - outputOptions.JSON = false - rescueStdout = os.Stdout - r, w, _ = os.Pipe() - os.Stdout = w - RenderOutput(dataMain, outputOptions) - w.Close() - out, _ = io.ReadAll(r) - os.Stdout = rescueStdout - if string(out) != testSuccess2 { - checkEqual(t, string(out), testSuccess2, " render output table stdout processing failed") + output := RenderOutput(dataMain, outputOptions) + if output != testSuccess1 { + checkEqual(t, output, testSuccess1, " render output table stdout processing failed") } outputOptions.Header = true - rescueStdout = os.Stdout - r, w, _ = os.Pipe() - os.Stdout = w - RenderOutput(dataMain, outputOptions) - w.Close() - out, _ = io.ReadAll(r) - os.Stdout = rescueStdout - if string(out) != testSuccess3 { - checkEqual(t, string(out), testSuccess3, " render output table stdout no header processing failed") + output = RenderOutput(dataMain, outputOptions) + if output != testSuccess2 { + checkEqual(t, output, testSuccess2, " render output table stdout no header processing failed") } }