types

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string = "dev"
	Date    string = "na"
	Commit  string = "na"
)

Set by build tool chain

View Source
var WorkspaceRoot string

WorkspaceRoot for completions

Functions

This section is empty.

Types

type Root

type Root struct {
	WorkspaceRoot   string      `opts:"-" yaml:"-"`
	CWD             string      `opts:"-" yaml:"-"`
	RootCfg         *Root       `opts:"-" yaml:"-"`
	GroupOutput     bool        `yaml:"-" help:"group by output. eg useful in 'wx -g sh git status --short'"`
	Parallelism     int         `yaml:"-" help:"max number of tasks to run in parallel. Defaults to 0 ie all"`
	DefaultGitOwner string      `opts:"-"`
	EmptyTag        bool        `yaml:"-" help:"if set the 'tags' are ignored"`
	Tags            []string    `` /* 142-byte string literal not displayed */
	NoHead          bool        `yaml:"-"`
	Workspaces      []Workspace `opts:"-"`
}

Root struct for commands Field tags control where the values come from If opts:"-" yaml:"-" are set in object creation

opts:="-" come from config file
yaml:="-" come from command line flags

func (*Root) Configure added in v0.0.5

func (root *Root) Configure(rcfg, rflg *Root)

func (*Root) Pexec

func (root *Root) Pexec(args []string, f func(ws *Workspace))

func (*Root) PrintOutput

func (root *Root) PrintOutput()

type VersionCmd added in v0.0.5

type VersionCmd struct{}

func (*VersionCmd) Run added in v0.0.5

func (r *VersionCmd) Run()

type Workspace

type Workspace struct {
	Path     string
	GitOwner string   `json:"owner,omitempty" yaml:",omitempty"`
	RepoName string   `json:"name,omitempty"  yaml:",omitempty"`
	Url      string   `json:"url,omitempty"`
	Tags     []string `json:"tags,omitempty"  yaml:",omitempty,flow"`
	Dna      *struct {
		Output string
	} `yaml:",omitempty"`
	Out string `json:"-" opts:"-"  yaml:"-"`
}

func (*Workspace) Address

func (repo *Workspace) Address(owner string) string

func (*Workspace) Name

func (repo *Workspace) Name() string

Jump to

Keyboard shortcuts

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