Skip to content

Commit 8bfa459

Browse files
fix : output flag for get projects (#199)
* add get project output flag Signed-off-by: Shivam Purohit <[email protected]> * fix:fmt Signed-off-by: Shivam Purohit <[email protected]> * remove unused import Signed-off-by: Shivam Purohit <[email protected]> --------- Signed-off-by: Shivam Purohit <[email protected]>
1 parent ec74df7 commit 8bfa459

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/cmd/get/projects.go

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

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

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

0 commit comments

Comments
 (0)