cmd

package
v4.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2022 License: AGPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

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{}{},
}

ServiceOptions 服务选项

Functions

func Add

func Add(cmds ...*cobra.Command)

func BuildTranslator added in v4.2.0

func BuildTranslator(c language.Config) *language.Translate

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 FetchFont

func FetchFont(_cssFile string, _outputDir string, _debug bool) error

func GetTranslator added in v4.2.0

func GetTranslator() *language.Translate

func Init

func Init()

func NewContext added in v4.2.0

func NewContext() echo.Context

func NewRoot

func NewRoot() *cobra.Command

func ResetTranslator added in v4.2.0

func ResetTranslator()

func TestSuiteRegister

func TestSuiteRegister(name string, fn func(cmd *cobra.Command, args []string) error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL