Skip to content

Commit

Permalink
tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
rocktavious committed Aug 23, 2024
1 parent 8ab7978 commit abd77f7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/cmd/property.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,16 @@ var listPropertyCmd = &cobra.Command{
}

var assignPropertyCmd = &cobra.Command{
Use: "property",
Aliases: []string{"prop"},
Short: "Assign a Property",
Long: `Assign a Property to an Entity by Id or Alias`,
Args: cobra.RangeArgs(0, 2),
ArgAliases: []string{"OWNER", "PROPERTY_DEFINITION"},
Use: "property [OWNER] [PROPERTY_DEFINITION]",
Aliases: []string{"prop"},
Short: "Assign a Property",
Long: `Assign a Property to an Entity by Id or Alias`,
Args: cobra.RangeArgs(0, 2),
Example: fmt.Sprintf(`
cat << EOF | opslevel assign property my-service my-property -f -
value: example_value
EOF
cat << EOF | opslevel assign property -f -
%s
EOF`, getYaml[opslevel.PropertyInput]()),
Expand Down

0 comments on commit abd77f7

Please sign in to comment.