Documentation
¶
Index ¶
Constants ¶
View Source
const ( ColorRed = "\033[0;31m" ColorGreen = "\033[0;32m" ColorYellow = "\033[1;33m" ColorBlue = "\033[0;34m" ColorCyan = "\033[0;36m" ColorNC = "\033[0m" // No Color )
颜色定义
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Config *config.AppConfig
Log *logrus.Entry
OSCommand *commands.OSCommand
DockerCommand *commands.DockerCommand
Tr *i18n.TranslationSet
ErrorChan chan error
// contains filtered or unexported fields
}
App struct
func (*App) KnownError ¶
KnownError takes an error and tells us whether it's an error that we know about where we can print a nicely formatted version of it rather than panicking with a stack trace
func (*App) RunInteractiveCLI ¶
RunInteractiveCLI runs the application in interactive CLI mode
Click to show internal directories.
Click to hide internal directories.