From a4930b781ebe27dad7687a55baf0ecb8f679c636 Mon Sep 17 00:00:00 2001 From: lew Date: Wed, 19 Nov 2025 11:13:35 +0000 Subject: [PATCH] fix(list): unnecessary parameter --- cmd/list.go | 2 +- cmd/list_flags.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/list.go b/cmd/list.go index 959c86f..2ad98ed 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -56,7 +56,7 @@ func list(cmd *cobra.Command, args []string) error { targetDB = "@" + dbName } - flags, err := parseFlags(cmd) + flags, err := enrichFlags() if err != nil { return err } diff --git a/cmd/list_flags.go b/cmd/list_flags.go index 04bc427..f854ba9 100644 --- a/cmd/list_flags.go +++ b/cmd/list_flags.go @@ -4,7 +4,6 @@ import ( "fmt" "github.com/jedib0t/go-pretty/v6/table" - "github.com/spf13/cobra" ) // ListArgs tracks the resolved flag configuration for the list command. @@ -49,7 +48,7 @@ var ( format formatEnum = "table" ) -func parseFlags(cmd *cobra.Command) (ListArgs, error) { +func enrichFlags() (ListArgs, error) { var renderFunc func(tw table.Writer) switch format.String() { case "csv":