flags

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 3 Imported by: 3 modules, 18 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	API                  = []cli.Flag{EndpointF, TitleF, FetcherF, ProjectF, RevisionF, BranchF, ProjectURLF, JIRAProjectKeyF, LinkF, TeamF, PolicyF, ReleaseGroupF, ReleaseGroupVersionF}
	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 (applies only to new projects) (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 (applies only to new projects)"}
	Policy               = "policy"
	PolicyF              = cli.StringFlag{Name: Policy, Usage: "the policy to assign to this project in FOSSA (applies only to new projects)"}
	ReleaseGroup         = "release-group"
	ReleaseGroupF        = cli.StringFlag{Name: ReleaseGroup, Usage: "the name of the release group to connect this project to"}
	ReleaseGroupVersion  = "release-group-version"
	ReleaseGroupVersionF = cli.StringFlag{Name: ReleaseGroupVersion, Usage: "the version of the release group to connect this project to"}
)
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