mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
ucind: add command aliases rm/delete (#396)
Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -10,9 +10,10 @@ import (
|
|||||||
|
|
||||||
func NewRemoveCommand() *cobra.Command {
|
func NewRemoveCommand() *cobra.Command {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "rm [NAME]",
|
Use: "rm [NAME]",
|
||||||
Short: "Remove a cluster.",
|
Short: "Remove a cluster.",
|
||||||
Args: cobra.MaximumNArgs(1),
|
Aliases: []string{"remove", "delete"},
|
||||||
|
Args: cobra.MaximumNArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
p := cmd.Context().Value("provisioner").(*ucind.Provisioner)
|
p := cmd.Context().Value("provisioner").(*ucind.Provisioner)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user