From 8b1e4be6a00c9ab1efdfe0f602230ce5d20edee8 Mon Sep 17 00:00:00 2001 From: David Bloss Date: Mon, 11 Dec 2023 15:29:25 -0600 Subject: [PATCH] updates per PR feedback --- src/cmd/property.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cmd/property.go b/src/cmd/property.go index 42b3ecdb..b599b9ab 100644 --- a/src/cmd/property.go +++ b/src/cmd/property.go @@ -41,7 +41,6 @@ var getPropertyDefinition = &cobra.Command{ result, err := getClientGQL().GetPropertyDefinition(identifier) cobra.CheckErr(err) - common.WasFound(result.Id == "", identifier) if isYamlOutput() { common.YamlPrint(result) } else { @@ -73,9 +72,10 @@ func getExamplePropertyDefinitionYaml() string { } var listPropertyDefinitionsCmd = &cobra.Command{ - Use: "property-definitions", - Short: "List property definitions", - Long: "List property definitions", + Use: "property-definition", + Short: "List property definitions", + Aliases: []string{"property-definitions"}, + Long: "List property definitions", Run: func(cmd *cobra.Command, args []string) { resp, err := getClientGQL().ListPropertyDefinitions(nil) list := resp.Nodes @@ -103,7 +103,7 @@ var deletePropertyDefinitonCmd = &cobra.Command{ propertyDefinitionId := args[0] err := getClientGQL().DeletePropertyDefinition(propertyDefinitionId) cobra.CheckErr(err) - fmt.Printf("deleted '%s' property definition\n", propertyDefinitionId) + fmt.Printf("deleted property definition '%s'\n", propertyDefinitionId) }, }