mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 01:36:23 +08:00
21 lines
449 B
Go
21 lines
449 B
Go
package host
|
|
|
|
import (
|
|
"github.com/gravitl/netmaker/cli/functions"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var hostDeleteRelayCmd = &cobra.Command{
|
|
Use: "delete_relay [HOST ID]",
|
|
Args: cobra.ExactArgs(1),
|
|
Short: "Delete Relay role from a host",
|
|
Long: `Delete Relay role from a host`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
functions.PrettyPrint(functions.DeleteRelay(args[0]))
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(hostDeleteRelayCmd)
|
|
}
|