cli

package
v0.0.0-...-6542374 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: MIT Imports: 10 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 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
	ReplaceDeps []file.ReplaceDep
}

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