cmd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootCmd = &cobra.Command{
		Use:   "novendor [flags] [packages]",
		Short: "verifies that all vendored packages are referenced in the project",
		RunE: func(cmd *cobra.Command, args []string) error {
			config := novendor.Config{
				PkgRegexps:                pkgRegexpsFlagVal,
				IncludeVendorInImportPath: includeVendorImportPathFlagVal,
				IgnorePkgs:                ignorePkgsFlagVal,
			}
			param, err := config.ToParam()
			if err != nil {
				return err
			}
			return novendor.Run(projectDirFlagVal, args, param, cmd.OutOrStdout())
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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