Skip to content

Commit

Permalink
Moving exec metacmds into their own information section on help
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Apr 4, 2021
1 parent 735330a commit cf3aff1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metacmd/cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func init() {
},
},
Exec: {
Section: SectionGeneral,
Section: SectionQueryExecute,
Name: "g",
Desc: "execute query (and send results to file or |pipe),[(OPTIONS)] [FILE] or ;",
Aliases: map[string]string{
Expand Down
5 changes: 3 additions & 2 deletions metacmd/section.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ type Section string
// Meta command section types.
const (
SectionGeneral Section = "General"
SectionHelp Section = "Help"
SectionQueryExecute Section = "Query Execute"
SectionQueryBuffer Section = "Query Buffer"
SectionHelp Section = "Help"
SectionTransaction Section = "Transaction"
SectionInputOutput Section = "Input/Output"
SectionInformational Section = "Informational"
Expand All @@ -32,7 +33,7 @@ func (s Section) String() string {

// SectionOrder is the order of sections to display via Listing.
var SectionOrder = []Section{
SectionGeneral, SectionHelp, SectionQueryBuffer,
SectionGeneral, SectionQueryExecute, SectionQueryBuffer, SectionHelp,
SectionInputOutput, SectionInformational, SectionFormatting,
SectionTransaction,
SectionConnection, SectionOperatingSystem, SectionVariables,
Expand Down

0 comments on commit cf3aff1

Please sign in to comment.