fix(list): unnecessary parameter
This commit is contained in:
parent
b93475ea45
commit
a4930b781e
2 changed files with 2 additions and 3 deletions
|
|
@ -56,7 +56,7 @@ func list(cmd *cobra.Command, args []string) error {
|
||||||
targetDB = "@" + dbName
|
targetDB = "@" + dbName
|
||||||
}
|
}
|
||||||
|
|
||||||
flags, err := parseFlags(cmd)
|
flags, err := enrichFlags()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/jedib0t/go-pretty/v6/table"
|
"github.com/jedib0t/go-pretty/v6/table"
|
||||||
"github.com/spf13/cobra"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ListArgs tracks the resolved flag configuration for the list command.
|
// ListArgs tracks the resolved flag configuration for the list command.
|
||||||
|
|
@ -49,7 +48,7 @@ var (
|
||||||
format formatEnum = "table"
|
format formatEnum = "table"
|
||||||
)
|
)
|
||||||
|
|
||||||
func parseFlags(cmd *cobra.Command) (ListArgs, error) {
|
func enrichFlags() (ListArgs, error) {
|
||||||
var renderFunc func(tw table.Writer)
|
var renderFunc func(tw table.Writer)
|
||||||
switch format.String() {
|
switch format.String() {
|
||||||
case "csv":
|
case "csv":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue