init

package
v0.7.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: MPL-2.0 Imports: 9 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"
)
View Source
var Cmd = cli.Command{
	Name:   "init",
	Usage:  "Initialize a .fossa.yml configuration file",
	Action: Run,
	Flags: flags.WithGlobalFlags([]cli.Flag{
		cli.BoolFlag{Name: Update, Usage: "update an existing configuration file"},
		cli.BoolFlag{Name: IncludeAll, Usage: "include suspicious modules (e.g. `docs`, `test` or `example` in name)"},
	}),
}

Cmd exports the `init` CLI command.

Functions

func Do

func Do(update, includeAll bool) ([]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