Skip to content

Commit 9dffc18

Browse files
Merge branch 'master' into environmentID-flag
2 parents 1f0dc3e + 8a139b0 commit 9dffc18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/cmd/connect/infra.go

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ var infraCmd = &cobra.Command{
106106
}
107107

108108
newInfra.EnvironmentID, _ = cmd.Flags().GetString("environment-id")
109+
109110
if newInfra.EnvironmentID == "" {
110111
utils.Red.Print("Error: --environment flag is empty")
111112
os.Exit(1)

pkg/cmd/get/projects.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ var projectsCmd = &cobra.Command{
3535
credentials, err := utils.GetCredentials(cmd)
3636
utils.PrintError(err)
3737

38-
//promptui to ask the user for the output format
39-
outputFormat := ""
38+
outputFormat, _ := cmd.Flags().GetString("output")
4039

4140
projects, err := apis.ListProject(credentials)
4241
utils.PrintError(err)

0 commit comments

Comments
 (0)