mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-03 02:53:29 +08:00
NET-1962: add gateway subcommand. (#3339)
* feat(go): add deprecation warning. * feat(go): add support for gateway commands. * feat(go): mention the server version in which the commands were deprecated.
This commit is contained in:
@@ -6,10 +6,11 @@ import (
|
||||
)
|
||||
|
||||
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`,
|
||||
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]))
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user