cli

package
v0.0.0-...-b51cd8a Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlagMainFileName = flagInfoString{
		Name:        "main",
		Shorthand:   "m",
		Description: "[required]main entrance file name",
	}
	FlagOutputFile = flagInfoString{
		Name:        "output",
		Shorthand:   "o",
		Description: "output name",
		Default:     "",
	}
	FlagGO111MODULE = flagInfoString{
		Name:        "go111",
		Shorthand:   "g",
		Description: "if found file 'go.mod',this variable will be set 'on' automatic",
		Default:     "off",
	}
	FlagImportPath = flagInfoString{
		Name:        "import-path",
		Shorthand:   "i",
		Description: "variables import path",
		Default:     "main",
	}
	FlagVersionName = flagInfoString{
		Name:        "version",
		Shorthand:   "v",
		Description: "variable name of version",
		Default:     "_version_",
	}

	FlagBranchName = flagInfoString{
		Name:        "branch",
		Shorthand:   "b",
		Description: "variable name of branch",
		Default:     "_branch_",
	}
	FlagCommitIdName = flagInfoString{
		Name:        "commit",
		Shorthand:   "c",
		Description: "variable name of commitId",
		Default:     "_commitId_",
	}
	FlagBuildTimeName = flagInfoString{
		Name:        "build-time",
		Shorthand:   "t",
		Description: "variable name of buildTime",
		Default:     "_buildTime_",
	}
)
View Source
var (
	GO111MODULE string
)

Functions

func Run

func Run(args []string) error

func Start

func Start()

func VersionCompare

func VersionCompare(v1, v2 string) (result int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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