Skip to content

Commit

Permalink
Plans + Plans Metal examples (#242)
Browse files Browse the repository at this point in the history
* adding additional examples to plan and plan metal commands

* adding addtional alias
  • Loading branch information
ddymko authored Apr 1, 2022
1 parent eb7067c commit 46f937c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion cmd/plans.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ var (
plansExample = `
#Full example
vultr-cli plans
#Shortened with aliased plans commands
vultr-cli p
#Get plans metal example
vultr-cli plans metal
#Shortened with aliased plans metal commands
vultr-cli p m
`

plansListLong = `Get all Vultr plans`
Expand All @@ -48,7 +57,7 @@ func Plans() *cobra.Command {
planCmd := &cobra.Command{
Use: "plans",
Short: "get information about Vultr plans",
Aliases: []string{"p"},
Aliases: []string{"p", "plan"},
Long: plansLong,
Example: plansExample,
}
Expand Down
5 changes: 4 additions & 1 deletion cmd/plansMetal.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ var (
plansMetalExample = `
#Full example
vultr-cli plans metal
#Shortened with aliased commands
vultr-cli p m
`

plansMetalListLong = `Get all Vultr bare metal plans`
Expand All @@ -47,7 +50,7 @@ var (
func PlansMetal() *cobra.Command {
planMetalCmd := &cobra.Command{
Use: "metal",
Aliases: []string{"m"},
Aliases: []string{"m", "metals"},
Short: "metal is used to access bare metal commands",
Long: plansMetalLong,
Example: plansMetalExample,
Expand Down

0 comments on commit 46f937c

Please sign in to comment.