logic

package
v0.5.25 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachToCmdr

func AttachToCmdr(root *cmdr.RootCmdOpt)

func LookPath added in v0.5.13

func LookPath(file string) (string, error)

LookPath searches for an executable named file in the directories named by the PATH environment variable. If file contains a slash, it is tried directly and the PATH is not consulted. The result may be an absolute path or a path relative to the current directory.

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

func (p *Project) GetTitleName() string

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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