Add recursive listing to roles (#881)

This also lays the framework for adding recursive listing to the rest of the resources.
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-01-23 13:39:04 -05:00
1 parent 0629526319
commit 6b58a3317d
18 files changed
+430 -511

No files matched your search

+6
View File
@@ -65,6 +65,12 @@ func PopulateCommonFlags(c *base.Command, f *base.FlagSet, resourceType string,
Target: &c.FlagHostCatalogId,
Usage: "The host-catalog resource to use for the operation.",
})
case "recursive":
f.BoolVar(&base.BoolVar{
Name: "recursive",
Target: &c.FlagRecursive,
Usage: "If set, the list operation will be applied recursively into child scopes, if supported by the type.",
})
}
}
}