cli

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear added in v1.5.0

func Clear()

Clear all the plugins from the CLI useful when you just want a few plugins on certain environment.

func New

func New() *cli

New creates a CLI with the passed root and plugins. This becomes handy when specifying your own plugins.

func Remove added in v1.5.0

func Remove(names ...string)

Remove a plugin by its name form the CLI list of plugins.

func Run added in v1.5.0

func Run(ctx context.Context, args []string) error

Run the CLI.

func Use added in v1.5.0

func Use(plugins ...plugins.Plugin)

Use specific plugin by adding it to the cli plugin list.

func Wrap added in v1.5.0

func Wrap(ctx context.Context, args []string) error

Wrap runs cmd/ox/main.go if found, otherwise it calls cli.Run.

Types

This section is empty.

Jump to

Keyboard shortcuts

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