Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachToCmdr ¶
func AttachToCmdr(root *cmdr.RootCmdOpt)
Types ¶
type BgoSettings ¶
type BgoSettings struct { *build.Common `yaml:",omitempty,inline" json:",omitempty" toml:",omitempty"` Scope string `yaml:"scope,omitempty" json:"scope,omitempty" toml:"scope,omitempty"` Projects map[string]ProjectGroup `yaml:"projects" json:"projects" toml:"projects"` Output Output `yaml:",omitempty" json:"output" toml:"output,omitempty"` Excludes []string `yaml:",omitempty,flow" json:"excludes,omitempty" toml:"excludes,omitempty"` Goproxy string `yaml:",omitempty" json:"goproxy,omitempty" toml:"goproxy,omitempty"` SavedAs string `yaml:"saved-as,omitempty" json:"saved_as,omitempty" toml:"saved_as,omitempty"` }
BgoSettings for go build. Generally it's loaded from '.bgo.yml'.
func (*BgoSettings) PullDownCommonSettings ¶
func (s *BgoSettings) PullDownCommonSettings()
type Output ¶
type Output struct { Dir string `yaml:",omitempty" json:"dir,omitempty" toml:"dir,omitempty"` // Base Dir SplitTo string `yaml:"split-to,omitempty" json:"split_to,omitempty" toml:"split_to,omitempty"` // see build.Context, Group, Project, ... | see also BuildContext struct NamedAs string `yaml:"named-as,omitempty" json:"named_as,omitempty" toml:"named_as,omitempty"` // see build.Context, SuffixAs string `yaml:"suffix-as,omitempty" json:"-" toml:"-"` // NEVER USED. ZipSuffixAs string `yaml:"zip-suffix-as,omitempty" json:"-" toml:"-"` // NEVER USED. supported: gz/tgz, bz2, xz/txz, 7z }
type Project ¶
type Project struct { Name string `yaml:"name,omitempty" json:"name,omitempty" toml:"name,omitempty"` // appName if specified Dir string `yaml:"dir" json:"dir" toml:"dir"` // root dir of this module/cli-app Package string `yaml:"package,omitempty" json:"package,omitempty" toml:"package,omitempty"` // pkgName or mainGo MainGo string `yaml:"main-go,omitempty" json:"main_go,omitempty" toml:"main_go,omitempty"` // default: 'main.go', // or: "./cli", "./cli/main.go", ... Version string `yaml:"version,omitempty" json:"version,omitempty" toml:"version,omitempty"` // *build.Common `yaml:",omitempty,inline,flow" json:",omitempty" toml:",omitempty"` // contains filtered or unexported fields }
func (*Project) GetTitleName ¶ added in v0.3.11
type ProjectGroup ¶
type ProjectGroup struct { LeadingText string `yaml:"leading-text,omitempty" json:"leading_text,omitempty" toml:"leading_text,omitempty"` //nolint:lll //no Items map[string]*ProjectWrap `yaml:"items" json:"items,omitempty" toml:"items,omitempty"` *build.Common `yaml:",omitempty,inline" json:",omitempty" toml:",omitempty"` }
type ProjectWrap ¶
type ProjectWrap struct {
Project `yaml:",omitempty,inline,flow" json:"project" toml:"project,omitempty"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.