Skip to content

Commit

Permalink
Merge branch 'master' into environmentID-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikaysaxena authored Feb 15, 2024
2 parents 1f0dc3e + 8a139b0 commit 9dffc18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/connect/infra.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ var infraCmd = &cobra.Command{
}

newInfra.EnvironmentID, _ = cmd.Flags().GetString("environment-id")

if newInfra.EnvironmentID == "" {
utils.Red.Print("Error: --environment flag is empty")
os.Exit(1)
Expand Down
3 changes: 1 addition & 2 deletions pkg/cmd/get/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ var projectsCmd = &cobra.Command{
credentials, err := utils.GetCredentials(cmd)
utils.PrintError(err)

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

projects, err := apis.ListProject(credentials)
utils.PrintError(err)
Expand Down

0 comments on commit 9dffc18

Please sign in to comment.