cmd

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 31 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// DefaultConfigFilename contains the default filename of the promu config file
	DefaultConfigFilename = ".promu.yml"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func HostFunc added in v0.16.0

func HostFunc() string

func RepoPathFunc

func RepoPathFunc() interface{}

RepoPathFunc returns the repository path.

func UserFunc

func UserFunc() (interface{}, error)

UserFunc returns the current username.

Types

type Binary

type Binary struct {
	Name string
	Path string
}

Binary represents a built binary.

type Config added in v0.3.0

type Config struct {
	Build struct {
		Binaries   []Binary
		Flags      string
		LDFlags    string
		ExtLDFlags []string
		Tags       map[string][]string
		Prefix     string
		Static     bool
	}
	Crossbuild struct {
		Platforms []string
	}
	Repository struct {
		Path string
	}
	Go struct {
		CGo     bool
		Version string
	}
	Tarball struct {
		Files  []string
		Prefix string
	}
}

Config contains the Promu Command Configuration

func NewConfig added in v0.3.0

func NewConfig() *Config

NewConfig creates a Config initialized with default values some values may be overridden by CLI args

Jump to

Keyboard shortcuts

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