Skip to content

Commit

Permalink
Merge pull request #46 from caliban0/fixServerUpdateName
Browse files Browse the repository at this point in the history
[FIX] Server Update now correctly accepts name flag
  • Loading branch information
zalmarge authored Jul 17, 2024
2 parents d362ba4 + 06189be commit db3a107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/cherryctl_server_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ cherryctl server update ID [--name <server_name>] [--hostname <hostname>] [--tag
-b, --bgp True to enable BGP in a server.
-h, --help help for update
--hostname string Server hostname.
--name string Server name.
--tags strings Tag or list of tags for the server: --tags="key=value,env=prod".
```

Expand Down
1 change: 1 addition & 0 deletions internal/servers/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func (c *Client) Update() *cobra.Command {
serverUpdateCmd.Flags().StringVarP(&hostname, "hostname", "", "", "Server hostname.")
serverUpdateCmd.Flags().BoolVarP(&bgp, "bgp", "b", false, "True to enable BGP in a server.")
serverUpdateCmd.Flags().StringSliceVarP(&tags, "tags", "", []string{}, `Tag or list of tags for the server: --tags="key=value,env=prod".`)
serverUpdateCmd.Flags().StringVarP(&name, "name", "", "", "Server name.")

return serverUpdateCmd
}

0 comments on commit db3a107

Please sign in to comment.