cli

package
v0.0.0-...-030b663 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDownloadJSON

func ReadDownloadJSON() string

ReadDownloadJSON reads dependency information and returns a Json string.

func ReadModFile

func ReadModFile(vendorDir string) string

ReadModFile runs a builtin go command to generate an officially formatted report file.

func ReadModJSON

func ReadModJSON() string

ReadModJSON reads the module file and returns a Json string.

func UpdateModule

func UpdateModule()

UpdateModule makes sure the module is updated ready to vendor the dependencies.

Types

type Options

type Options struct {
	Help    bool
	PkgOnly bool
}

Options contains CLI arguments passed to the program.

func ParseOptions

func ParseOptions() Options

ParseOptions parses the command line options and returns a struct filled with the relevant options.

func (*Options) PrintUsage

func (opt *Options) PrintUsage()

PrintUsage prints the usage of this tool.

Jump to

Keyboard shortcuts

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