cli

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear()

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

func Remove

func Remove(names ...string)

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

func Run

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

Run the CLI.

func Use

func Use(plugins ...core.Plugin)

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

func Wrap

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