cli

package
v0.0.0-...-ab4cb45 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 5 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(options Options)

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

Types

type Options

type Options struct {
	Help     bool
	Debug    bool
	Quiet    bool
	BasePath string
	Filter   string
}

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