Documentation
¶
Overview ¶
Package cli wires cobra subcommands, global flags, and exit-code mapping.
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitConnFailed = 2 ExitReadonlyViolation = 3 ExitDDLRequiresWrite = 4 ExitDestructiveRequiresYes = 5 ExitIdentifierInvalid = 6 ExitMultiStatement = 7 ExitSQLError = 8 ExitQueryTimeout = 9 ExitConfigError = 10 )
Exit codes (see plan Global Constraints).
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Globals ¶
type Globals struct {
Datasource string
Format string
Write bool
DDL bool
Yes bool
Limit int
Timeout string
ConfigPath string
Host string
Port int
User string
Password string
Database string
// contains filtered or unexported fields
}
Globals carries parsed global flags shared by all subcommands.
Click to show internal directories.
Click to hide internal directories.