We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f0dc3e + 8a139b0 commit 9dffc18Copy full SHA for 9dffc18
pkg/cmd/connect/infra.go
@@ -106,6 +106,7 @@ var infraCmd = &cobra.Command{
106
}
107
108
newInfra.EnvironmentID, _ = cmd.Flags().GetString("environment-id")
109
+
110
if newInfra.EnvironmentID == "" {
111
utils.Red.Print("Error: --environment flag is empty")
112
os.Exit(1)
pkg/cmd/get/projects.go
@@ -35,8 +35,7 @@ var projectsCmd = &cobra.Command{
35
credentials, err := utils.GetCredentials(cmd)
36
utils.PrintError(err)
37
38
- //promptui to ask the user for the output format
39
- outputFormat := ""
+ outputFormat, _ := cmd.Flags().GetString("output")
40
41
projects, err := apis.ListProject(credentials)
42
0 commit comments