Help us shape the future of Go! Take the 2026 Go Developer Survey

cmd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package cmd provides methods to initialize each sub-command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeFlagUsage

func ExcludeFlagUsage(f *flag.FlagSet, repeatable bool, exclude []string) string

ExcludeFlagUsage is the same as FlagUsage, but excludes a slice passed as exclude. Note that ExcludeFlagUsage must be called before Parse.

func FlagUsage

func FlagUsage(f *flag.FlagSet, repeatable bool) string

FlagUsage gets available flags and usage from f.

func NewBuild

func NewBuild(
	ui cli.Ui,
	gocmd gocmd.Command,
	workspace deptfile.Workspacer,
	toolcacher toolcacher.Cacher,
) cli.Command

NewBuild returns an initialized buildCommand instance.

func NewClean added in v0.1.1

func NewClean(
	ui cli.Ui,
	toolcacher toolcacher.Cacher,
) cli.Command

NewClean returns an initialized cleanCommand instance.

func NewExec added in v0.1.1

func NewExec(
	args []string,
	ui cli.Ui,
	workspace deptfile.Workspacer,
	toolcacher toolcacher.Cacher,
) cli.Command

NewExec returns an initialized execCommand instance.

func NewGet

func NewGet(
	ui cli.Ui,
	gocmd gocmd.Command,
	workspace deptfile.Workspacer,
) cli.Command

NewGet returns an initialized get command instance.

func NewInit

func NewInit(ui cli.Ui) cli.Command

NewInit returns an initialized init command instance.

func NewList

func NewList(
	ui cli.Ui,
	workspace deptfile.Workspacer,
) cli.Command

NewList returns an initialized listCommand instance.

func NewRemove

func NewRemove(
	ui cli.Ui,
	gocmd gocmd.Command,
	workspace deptfile.Workspacer,
) cli.Command

NewRemove returns an initialized removeCommand instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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