in cli/commands/catalog.go [74:86]
func GetCatalogType(c *cli.Context) (CatalogItemType, error) {
commandType := c.Args().First()
if strings.HasPrefix("entity", commandType) {
return EntitiesItemType, nil
} else if strings.HasPrefix("location", commandType) {
return LocationsItemType, nil
} else if strings.HasPrefix("policy", commandType) {
return PoliciesItemType, nil
} else if strings.HasPrefix("application", commandType) {
return ApplicationsItemType, nil
}
return Unknown, errors.New("Unknown type: " + commandType)
}