You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BaseCommand: commands.New("list", "List current servers", "upctl server list"),
22
+
BaseCommand: commands.New(
23
+
"list",
24
+
"List current servers",
25
+
"upctl server list",
26
+
"upctl server list --show-ip-addresses",
27
+
"upctl server list --show-ip-addresses=public",
28
+
),
24
29
}
25
30
}
26
31
@@ -38,13 +43,14 @@ type listServerIpaddresses struct {
38
43
39
44
typelistCommandstruct {
40
45
*commands.BaseCommand
41
-
showIPAddressesconfig.OptionalBoolean
46
+
showIPAddressesstring
42
47
}
43
48
44
49
// InitCommand implements Command.InitCommand
45
50
func (ls*listCommand) InitCommand() {
46
51
flags:=&pflag.FlagSet{}
47
-
config.AddToggleFlag(flags, &ls.showIPAddresses, "show-ip-addresses", false, "Show IP addresses of the servers in the output.")
52
+
flags.StringVar(&ls.showIPAddresses, "show-ip-addresses", "none", "Show servers IP addresses of specified access type in the output or all ip addresses if argument value is \"all\" or no argument is specified.")
// getIPAddressesByServerUUID returns IP addresses grouped by server UUID. This function will be removed when server end-point response includes IP addresses.
0 commit comments