diff --git a/cmd/create.go b/cmd/create.go index c758b86..967824a 100644 --- a/cmd/create.go +++ b/cmd/create.go @@ -18,6 +18,7 @@ var createCmd = &cobra.Command{ func init() { rootCmd.AddCommand(createCmd) + createCmd.PersistentFlags().BoolP("json", "j", false, "Output JSON") createCmd.AddCommand(resource.ResourceCreateCmd) createCmd.AddCommand(folder.FolderCreateCmd) createCmd.AddCommand(group.GroupCreateCmd) diff --git a/cmd/get.go b/cmd/get.go index 24fbc33..ac8bdce 100644 --- a/cmd/get.go +++ b/cmd/get.go @@ -18,6 +18,7 @@ var getCmd = &cobra.Command{ func init() { rootCmd.AddCommand(getCmd) + getCmd.PersistentFlags().BoolP("json", "j", false, "Output JSON") getCmd.AddCommand(resource.ResourceGetCmd) getCmd.AddCommand(folder.FolderGetCmd) getCmd.AddCommand(group.GroupGetCmd) diff --git a/cmd/list.go b/cmd/list.go index f4672aa..90124b2 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -18,6 +18,7 @@ var listCmd = &cobra.Command{ func init() { rootCmd.AddCommand(listCmd) + listCmd.PersistentFlags().BoolP("json", "j", false, "Output JSON") listCmd.AddCommand(resource.ResourceListCmd) listCmd.AddCommand(folder.FolderListCmd) listCmd.AddCommand(group.GroupListCmd)