cmd

package
v0.0.0-...-8adebf7 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCMD = &cobra.Command{
	Use:   "govend",
	Short: "Govend vendors external packages.",
	Long:  rootDesc,
	Run: func(cmd *cobra.Command, args []string) {

		if version {
			fmt.Println("0.1.5")
			return
		}

		if scan {
			if err := Scan(args, format, testfiles, all); err != nil {
				log.Fatal(err)
			}
			return
		}

		if err := Vend(args, update, verbose, results, commands, lock, format); err != nil {
			log.Fatal(err)
		}
	},
}

RootCMD describes the root command.

Functions

func Scan

func Scan(args []string, format string, testfiles, all bool) error

Scan scans and prints external imported packages.

func Vend

func Vend(pkgs []string, update, verbose, results, commands, lock bool, format string) error

Vend is the main function govend uses to vendor external packages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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