Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildDate time.Time // Set by main
View Source
var DevMode = false // Whether running in development mode
View Source
var TransqlateVersion string // Set by main
View Source
var Version string // Set by main
Functions ¶
func Errorf ¶
Errorf creates a cmd error
Default exit code is 1. Use WithCode(x) to change exit code. You cant wrap an error.
func Exit ¶ added in v0.0.12
Exit returns an anonymous exiting error
Use it to stop program after --version or --help. Using cmd.Exit() rather than os.Exit() ensures all deferred functions are executed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.