Skip to content

Commit

Permalink
updates per PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbloss committed Dec 11, 2023
1 parent 0d1836d commit 8b1e4be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cmd/property.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
},
}

Expand Down

0 comments on commit 8b1e4be

Please sign in to comment.