mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 19:05:27 +08:00
20 lines
397 B
Go
20 lines
397 B
Go
package host
|
|
|
|
import (
|
|
"github.com/gravitl/netmaker/cli/functions"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var hostDeleteCmd = &cobra.Command{
|
|
Use: "delete HostID",
|
|
Args: cobra.ExactArgs(1),
|
|
Short: "Delete a host",
|
|
Long: `Delete a host`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
functions.PrettyPrint(functions.DeleteHost(args[0]))
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(hostDeleteCmd)
|
|
}
|