Rename 'vpn firewall list' to 'vpn firewall show'
This commit is contained in:
parent
cf968ff883
commit
a5829a6493
@ -159,9 +159,9 @@ func newFirewallView(firewallConfig daecommon.ConfigFirewall) firewallView {
|
||||
}
|
||||
}
|
||||
|
||||
var subCmdVPNFirewallList = subCmd{
|
||||
name: "list",
|
||||
descr: "List all currently configured firewall rules",
|
||||
var subCmdVPNFirewallShow = subCmd{
|
||||
name: "show",
|
||||
descr: "Shows the currently configured firewall rules",
|
||||
do: doWithOutput(func(ctx subCmdCtx) (any, error) {
|
||||
staged := ctx.flags.Bool(
|
||||
"staged",
|
||||
@ -201,7 +201,7 @@ var subCmdVPNFirewall = subCmd{
|
||||
do: func(ctx subCmdCtx) error {
|
||||
return ctx.doSubCmd(
|
||||
subCmdVPNFirewallAdd,
|
||||
subCmdVPNFirewallList,
|
||||
subCmdVPNFirewallShow,
|
||||
)
|
||||
},
|
||||
}
|
||||
|
@ -160,7 +160,7 @@ func TestVPNFirewallAdd(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestVPNFirewallList(t *testing.T) {
|
||||
func TestVPNFirewallShow(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
tests := []struct {
|
||||
@ -323,7 +323,7 @@ func TestVPNFirewallList(t *testing.T) {
|
||||
Once()
|
||||
}
|
||||
|
||||
args := append([]string{"vpn", "firewall", "list"}, test.flags...)
|
||||
args := append([]string{"vpn", "firewall", "show"}, test.flags...)
|
||||
|
||||
if test.wantErr == "" {
|
||||
h.runAssertStdout(t, test.want, args...)
|
||||
|
Loading…
Reference in New Issue
Block a user