cli

package
v3.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	APP  = "GoMakeGen"
	VER  = "3.2.3"
	DESC = "Utility for generating makefiles for Go applications"
)

App info

View Source
const (
	OPT_OUTPUT    = "o:output"
	OPT_GLIDE     = "g:glide"
	OPT_DEP       = "d:dep"
	OPT_MOD       = "m:mod"
	OPT_STRIP     = "S:strip"
	OPT_BENCHMARK = "B:benchmark"
	OPT_RACE      = "R:race"
	OPT_CGO       = "C:cgo"
	OPT_NO_COLOR  = "nc:no-color"
	OPT_HELP      = "h:help"
	OPT_VER       = "v:version"

	OPT_VERB_VER     = "vv:verbose-version"
	OPT_COMPLETION   = "completion"
	OPT_GENERATE_MAN = "generate-man"
)

Constants with options names

View Source
const SEPARATOR_SIZE = 80

SEPARATOR_SIZE is default separator size

Variables

This section is empty.

Functions

func Init

func Init(gitRev string, gomod []byte)

Types

type Makefile

type Makefile struct {
	BaseImports []string
	TestImports []string
	Binaries    []string

	FuzzPaths []string
	TestPaths []string

	PkgBase string

	MaxTargetNameSize int
	MaxOptionNameSize int

	HasTests         bool
	Benchmark        bool
	Race             bool
	Strip            bool
	CGO              bool
	HasSubpackages   bool
	HasStableImports bool

	GlideUsed bool
	DepUsed   bool
	ModUsed   bool
}

Makefile contains full info for makefile generation

func (*Makefile) Cleanup

func (m *Makefile) Cleanup(dir string)

Cleanup cleans imports and binaries

func (*Makefile) Render

func (m *Makefile) Render() []byte

Render returns makefile data

Jump to

Keyboard shortcuts

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