flags

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: MPL-2.0 Imports: 3 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	API             = []cli.Flag{EndpointF, TitleF, FetcherF, ProjectF, RevisionF, BranchF, ProjectURLF, JIRAProjectKeyF, LinkF, TeamF}
	Endpoint        = "endpoint"
	EndpointF       = cli.StringFlag{Name: Short(Endpoint), Usage: "the FOSSA server endpoint (default: 'https://app.fossa.com')"}
	Title           = "title"
	TitleF          = cli.StringFlag{Name: Short(Title), Usage: "the title of the FOSSA project. (default: the project name)"}
	Fetcher         = "fetcher"
	FetcherF        = cli.StringFlag{Name: Short(Fetcher), Usage: "type of fetcher to use for fossa. (default: 'custom')"}
	Project         = "project"
	ProjectF        = cli.StringFlag{Name: Short(Project), Usage: "this repository's URL or VCS endpoint (default: VCS remote 'origin')"}
	Revision        = "revision"
	RevisionF       = cli.StringFlag{Name: Short(Revision), Usage: "this repository's current revision hash (default: VCS hash HEAD)"}
	Branch          = "branch"
	BranchF         = cli.StringFlag{Name: Short(Branch), Usage: "this repository's current branch (default: current VCS branch)"}
	ProjectURL      = "project-url"
	ProjectURLF     = cli.StringFlag{Name: ShortUpper(ProjectURL), Usage: "this repository's home page"}
	JIRAProjectKey  = "jira-project-key"
	JIRAProjectKeyF = cli.StringFlag{Name: Short(JIRAProjectKey), Usage: "this repository's JIRA project key"}
	Link            = "link"
	LinkF           = cli.StringFlag{Name: ShortUpper(Link), Usage: "a link to attach to the current build"}
	Team            = "team"
	TeamF           = cli.StringFlag{Name: ShortUpper(Team), Usage: "this repository's team inside your organization"}
)
View Source
var (
	Global   = []cli.Flag{ConfigF, NoAnsiF, DebugF, VerboseF}
	Config   = "config"
	ConfigF  = cli.StringFlag{Name: Short(Config), Usage: "path to config file (default: '.fossa.{yml,yaml}')"}
	NoAnsi   = "no-ansi"
	NoAnsiF  = cli.BoolFlag{Name: NoAnsi, Usage: "do not use interactive mode (ANSI codes)"}
	Debug    = "debug"
	DebugF   = cli.BoolFlag{Name: Debug, Usage: "print debug information to stderr"}
	Verbose  = "verbose"
	VerboseF = cli.BoolFlag{Name: Verbose, Usage: "print limited debug information to stderr"}
)
View Source
var (
	Options = []cli.Flag{OptionF}
	Option  = "option"
	OptionF = cli.StringSliceFlag{Name: Option, Usage: "set configurable options (format is `key:value` e.g. allow-unresolved:true)"}
)
View Source
var (
	ReportCmd   = []cli.Flag{OutputFileF, TemplateF}
	OutputFile  = "output-file"
	OutputFileF = cli.StringFlag{Name: OutputFile, Value: "-", Usage: "Output file for report"}
	Template    = "template"
	TemplateF   = cli.StringFlag{Name: Template, Usage: "process result via template file prior to sending it to output"}
)

Functions

func Combine added in v0.7.4

func Combine(sets ...[]cli.Flag) []cli.Flag

func Short added in v0.7.0

func Short(name string) string

func ShortUpper added in v0.7.0

func ShortUpper(name string) string

func WithAPIFlags

func WithAPIFlags(f []cli.Flag) []cli.Flag

func WithGlobalFlags

func WithGlobalFlags(f []cli.Flag) []cli.Flag

func WithOptions added in v0.7.0

func WithOptions(f []cli.Flag) []cli.Flag

func WithReportTemplateFlags added in v0.7.0

func WithReportTemplateFlags(f []cli.Flag) []cli.Flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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