Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions cmd/pgcli.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,11 @@ func init() {
pgcliCmd.RunE = func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()
var input views.PSQLInput
err := command.ParseCommandInteractiveOnly(cmd, args, &input)
if err != nil {
return err
}

if cmd.ArgsLenAtDash() == 0 {
input.PostgresIDOrName = ""
input.Tool = views.PGCLI
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to set the tool here as this is defined inside InteractivePGCLIView right ?


if len(args) > 0 && cmd.ArgsLenAtDash() != 0 {
input.PostgresIDOrName = args[0]
}

if cmd.ArgsLenAtDash() >= 0 {
Expand Down
Loading