Skip to content

Commit

Permalink
Add \go alias for \g meta command
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Oct 27, 2024
1 parent 6dfa93b commit 2d63b05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metacmd/cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ func init() {
Section: SectionQueryExecute,
Descs: []Desc{
{"g", "[(OPTIONS)] [FILE] or ;", "execute query (and send results to file or |pipe)"},
{"go", "", ""},
{"G", "[(OPTIONS)] [FILE]", "as \\g, but forces vertical output mode"},
{"gx", "[(OPTIONS)] [FILE]", "as \\g, but forces expanded output mode"},
{"gexec", "", "execute query and execute each value of the result"},
Expand All @@ -255,7 +256,7 @@ func init() {
Process: func(p *Params) error {
p.Option.Exec = ExecOnly
switch p.Name {
case "g":
case "g", "go":
params, err := p.GetAll(true)
if err != nil {
return err
Expand Down

0 comments on commit 2d63b05

Please sign in to comment.