Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct { Path string `short:"p" long:"path" description:"Project path, default current path. Can be configured in energy.json" default:""` Upx bool `short:"u" long:"upx" description:"Set this parameter and install upx. Use upx to compress the execution file."` UpxFlag string `long:"upxFlag" description:"Upx command line parameters" default:""` Gtk string `long:"gtk" description:"Compile on Linux, enable TempDll. gtk2 or gtk3" default:"gtk3"` TempDll bool `short:"d" long:"dll" description:"Enable built-in liblcl build"` }
type Config ¶
type Config struct { Index int Wd string EnergyCfg EnergyConfig Install Install `command:"install" description:"install energy development dependency environment"` Package Package `command:"package" description:"energy application production and installation package"` Version Version `command:"version" description:"list all release version numbers of energy"` Setenv Setenv `command:"setenv" description:"set ENERGY_ HOME framework environment"` Env Env `command:"env" description:"display ENERGY_ HOME framework environment directory"` Init Init `command:"init" description:"initialize the energy application project"` Build Build `command:"build" description:"building an energy project"` V string `command:"v" description:"energy cli version"` }
type DownloadSource ¶
type EnergyConfig ¶
type EnergyConfig struct { Framework string `json:"framework"` Version string `json:"version"` Source DownloadSource `json:"source"` }
type Install ¶
type Install struct { Path string `short:"p" long:"path" description:"Installation directory Default current directory"` Version string `short:"v" long:"version" description:"Specifying a version number"` Name string `short:"n" long:"name" description:"Name of the framework directory after installation" default:"EnergyFramework"` Download string `short:"d" long:"download" description:"Download Source, 0:gitee or 1:github, Default empty" default:""` OS OS `long:"os" description:"Specify install OS: [windows, linux, darwin], default current system: os"` Arch Arch `long:"arch" description:"Specify install ARCH: [386, amd64, arm64], Default current system: architecture"` CEF string `` /* 181-byte string literal not displayed */ IGolang bool // 是否安装Golang ICEF bool // 是否安装CEF INSIS bool // 是否安装nsis IUPX bool // 是否安装upx I7za bool // 是否安装7za IsSame bool // 安装的OS和Arch是否为当前系统架构, 默认当前系统架构 }
type Package ¶
type Package struct { Path string `short:"p" long:"path" description:"Project path, default current path. Can be configured in energy.json" default:""` Clean bool `short:"c" long:"clean" description:"Clear configuration and regenerate the default configuration"` Pkgbuild bool `long:"pkg" description:"Using pkgbuild to create pkg development installation packages"` }
Click to show internal directories.
Click to hide internal directories.