Add Output Json Flag

This commit is contained in:
Samuel Lorch 2022-12-30 13:28:18 +01:00
parent 45fe21119b
commit 46ceb8176d
3 changed files with 3 additions and 0 deletions

View file

@ -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)