runner

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFromCache

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

FetchFromCache loads tool list from cache file

func GetUpdateCallback added in v0.0.5

func GetUpdateCallback() func()

GetUpdateCallback returns a callback function that updates pdtm

func UpdateCache

func UpdateCache(toolList []types.Tool) error

UpdateCache creates/updates cache file

Types

type Options

type Options struct {
	ConfigFile string
	Path       string
	NoColor    bool
	SetPath    bool
	UnSetPath  bool

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

	InstallAll bool
	UpdateAll  bool
	RemoveAll  bool

	Verbose            bool
	Silent             bool
	Version            bool
	ShowPath           bool
	DisableUpdateCheck bool
	DisableChangeLog   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) ListToolsAndEnv added in v0.0.5

func (r *Runner) ListToolsAndEnv(tools []types.Tool) error

ListToolsAndEnv 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