Documentation ¶
Index ¶
- Variables
- func Add(cmds ...*cobra.Command)
- func BuildTranslator(c language.Config) *language.Translate
- func CallSignalOperation(sig os.Signal, i int, eng engine.Engine)
- func Execute()
- func FetchFont(_cssFile string, _outputDir string, _debug bool) error
- func GetTranslator() *language.Translate
- func Init()
- func NewContext() echo.Context
- func NewRoot() *cobra.Command
- func RegisterSignal(s os.Signal, op ...func(int, engine.Engine))
- func ResetTranslator()
- func TestSuiteRegister(name string, fn func(cmd *cobra.Command, args []string) error)
Constants ¶
This section is empty.
Variables ¶
View Source
var InitDBConfig = &sdb.DB{
Type: `mysql`,
User: `root`,
Database: `nging`,
Host: `127.0.0.1:3306`,
}
静默安装
View Source
var InitInstallConfig = &struct { Charset string AdminUser string AdminPass string AdminEmail string Language string // en / zh-cn }{ Charset: sdb.MySQLDefaultCharset, AdminUser: `admin`, Language: `zh-cn`, }
View Source
var ServiceOptions = &service.Options{ Name: ``, DisplayName: ``, Description: ``, Options: map[string]interface{}{}, MaxRetries: 10, RetryInterval: 60, }
ServiceOptions 服务选项
Functions ¶
func CallSignalOperation ¶ added in v5.2.0
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 GetTranslator ¶
func NewContext ¶
func RegisterSignal ¶ added in v5.2.0
func ResetTranslator ¶
func ResetTranslator()
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.