runner

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v0.0.4"

Variables

This section is empty.

Functions

func FetchFromCache

func FetchFromCache() ([]pkg.Tool, error)

FetchFromCache loads tool list from cache file

func UpdateCache

func UpdateCache(toolList []pkg.Tool) error

UpdateCache creates/updates cache file

Types

type Options

type Options struct {
	ConfigFile string
	Path       string
	NoColor    bool
	NoSetPath  bool

	Install goflags.StringSlice
	Update  goflags.StringSlice
	Remove  goflags.StringSlice

	InstallAll bool
	UpdateAll  bool
	RemoveAll  bool

	Verbose  bool
	Silent   bool
	Version  bool
	ShowPath bool
}

Options contains the configuration options for tuning the enumeration process.

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line flags provided by a user

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner contains the internal logic of the program

func NewRunner

func NewRunner(options *Options) (*Runner, error)

NewRunner instance

func (*Runner) Close

func (r *Runner) Close()

Close the runner instance

func (*Runner) ListTools

func (r *Runner) ListTools(tools []pkg.Tool) error

ListTools prints the list of tools

func (*Runner) Run

func (r *Runner) Run() error

Run the instance

Jump to

Keyboard shortcuts

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