From a5829a649383df8cbca79a78cdee992516a03ba8 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 10 Dec 2024 13:55:03 +0100 Subject: [PATCH] Rename 'vpn firewall list' to 'vpn firewall show' --- go/cmd/entrypoint/vpn_firewall.go | 8 ++++---- go/cmd/entrypoint/vpn_firewall_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go/cmd/entrypoint/vpn_firewall.go b/go/cmd/entrypoint/vpn_firewall.go index 1441658..5290b62 100644 --- a/go/cmd/entrypoint/vpn_firewall.go +++ b/go/cmd/entrypoint/vpn_firewall.go @@ -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, ) }, } diff --git a/go/cmd/entrypoint/vpn_firewall_test.go b/go/cmd/entrypoint/vpn_firewall_test.go index cd91eeb..7e578bf 100644 --- a/go/cmd/entrypoint/vpn_firewall_test.go +++ b/go/cmd/entrypoint/vpn_firewall_test.go @@ -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...)