init

package
v0.7.3-2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: MPL-2.0 Imports: 9 Imported by: ? modules, 0 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

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