init

package
v0.7.20 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package init implements `fossa init`.

Index

Constants

This section is empty.

Variables

View Source
var (
	Update     = "update"
	IncludeAll = "include-all"
	Type       = "type"
)
View Source
var Cmd = cli.Command{
	Name:   "init",
	Usage:  "Initialize a .fossa.yml configuration file",
	Action: Run,
	Flags: flags.WithGlobalFlags(flags.WithOptions([]cli.Flag{

		cli.BoolFlag{Name: IncludeAll, Usage: "include suspicious modules (e.g. `docs`, `test` or `example` in name)"},
		cli.StringSliceFlag{Name: Type, Usage: "the module types to check for"},
	})),
}

Cmd exports the `init` CLI command.

Functions

func Do

func Do(includeAll bool, options map[string]interface{}) ([]module.Module, error)

Do discovers modules within the current working directory.

func Run

func Run(ctx *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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