Documentation ¶
Index ¶
- Constants
- func Die(err string, code int)
- func DieErr(err error)
- func DieFmt(msg string, args ...interface{})
- func DisableColors()
- func Execute()
- func Fmt(msg string, args ...interface{})
- func FmtDiff(diff *models.Diff, withDirection bool)
- func ParseDocument(dest interface{}, filename string, fileTitle string)
- func PrintTable(rows [][]interface{}, headers []interface{}, paginator *models.Pagination, ...)
- func Write(tpl string, ctx interface{})
- func WriteTo(tpl string, ctx interface{}, w io.Writer)
- type APIError
- type Pagination
- type StatementDoc
- type Table
Constants ¶
View Source
const ( LakectlInteractive = "LAKECTL_INTERACTIVE" LakectlInteractiveDisable = "no" DeathMessage = "Error executing command: {{.Error|red}}\n" )
View Source
const ( ConfigAccessKeyID = "credentials.access_key_id" ConfigSecretAccessKey = "credentials.secret_access_key" ConfigServerEndpointURL = "server.endpoint_url" DefaultServerEndpointURL = "http://127.0.0.1:8000" )
View Source
const (
DefaultBranch = "master"
)
Variables ¶
This section is empty.
Functions ¶
func DisableColors ¶
func DisableColors()
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func ParseDocument ¶
ParseDocument parses the contents of filename into dest, which should be a JSON-deserializable struct. If filename is "-" it reads standard input. If any errors occur it dies with an error message containing fileTitle.
func PrintTable ¶
func PrintTable(rows [][]interface{}, headers []interface{}, paginator *models.Pagination, amount int)
Types ¶
type Pagination ¶
type StatementDoc ¶
Click to show internal directories.
Click to hide internal directories.