mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 02:44:29 +08:00
* feat(go): add deprecation warning. * feat(go): add support for gateway commands. * feat(go): mention the server version in which the commands were deprecated.
21 lines
554 B
Go
21 lines
554 B
Go
package node
|
|
|
|
import (
|
|
"github.com/gravitl/netmaker/cli/functions"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var hostDeleteRelayCmd = &cobra.Command{
|
|
Use: "delete_relay [NETWORK] [NODE ID]",
|
|
Args: cobra.ExactArgs(2),
|
|
Short: "Delete Relay from a node",
|
|
Long: `Delete Relay from a node`,
|
|
Deprecated: "in favour of the `gateway` subcommand, in Netmaker v0.90.0.",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
functions.PrettyPrint(functions.DeleteRelay(args[0], args[1]))
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(hostDeleteRelayCmd)
|
|
}
|