cmd

package
v0.0.0-...-862138a Latest Latest
Warning

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

Go to latest
Published: May 29, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Library     = amalgomated.NewCmdLibrary(amalgomatedformatters.Instance())
	VerboseFlag = flag.BoolFlag{
		Name:  verboseFlagName,
		Alias: "v",
		Usage: "Print formatters as they are run",
	}
	ListFlag = flag.BoolFlag{
		Name:  listFlagName,
		Alias: "l",
		Usage: "Print the files that would change if command is run",
	}
	FilesParam = flag.StringSlice{
		Name:     filesParamName,
		Usage:    "Files to format (defaults to all project .go files)",
		Optional: true,
	}
)

Functions

func DoRunAll

func DoRunAll(filesParam []string, ctx cli.Context, supplier amalgomated.CmderSupplier, wd string) error

func GoFmtCommand

func GoFmtCommand(supplier amalgomated.CmderSupplier) cli.Command

func PTImportsCommand

func PTImportsCommand(supplier amalgomated.CmderSupplier) cli.Command

func RunAllCommand

func RunAllCommand(supplier amalgomated.CmderSupplier) cli.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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