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":