Skip to content

Commit 215ddda

Browse files
author
Bartłomiej Święcki
committed
fix(cmd/immuclient): remove warnings on sql commands in interactive mode
Do not display `Redundant arguments` warnings when running `exec` or `query` commands in interactive mode. Signed-off-by: Bartłomiej Święcki <[email protected]>
1 parent 23540d1 commit 215ddda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/immuclient/cli/register.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ func (cli *cli) initCommands() {
5959
cli.Register(&command{"version", "Print version", cli.version, nil, false})
6060

6161
// SQL
62-
cli.Register(&command{"exec", "Executes sql statement", cli.sqlExec, []string{"statement"}, false})
63-
cli.Register(&command{"query", "Query sql statement", cli.sqlQuery, []string{"statement"}, false})
62+
cli.Register(&command{"exec", "Executes sql statement", cli.sqlExec, []string{"statement"}, true})
63+
cli.Register(&command{"query", "Query sql statement", cli.sqlQuery, []string{"statement"}, true})
6464
cli.Register(&command{"describe", "Describe table", cli.describeTable, []string{"table"}, false})
6565
cli.Register(&command{"tables", "List tables", cli.listTables, nil, false})
6666
}

0 commit comments

Comments
 (0)