cli

package
v0.9.6-beta Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aliaser

type Aliaser = plugcmd.Aliaser

type AvailabilityChecker

type AvailabilityChecker interface {
	PluginAvailable(root string) bool
}

AvailabilityChecker

type Commander

type Commander = plugcmd.Commander

type Devctl

type Devctl struct {
	Plugins []plugins.Plugin
	// contains filtered or unexported fields
}

Devctl represents the `devctl` cli.

func NewFromRoot

func NewFromRoot(root string) (*Devctl, error)

func (Devctl) Description

func (Devctl) Description() string

func (*Devctl) Main

func (b *Devctl) Main(ctx context.Context, root string, args []string) error

func (Devctl) PluginName

func (Devctl) PluginName() string

func (Devctl) ScopedPlugins

func (b Devctl) ScopedPlugins() []plugins.Plugin

func (Devctl) String

func (Devctl) String() string

func (Devctl) SubCommands

func (b Devctl) SubCommands() []plugins.Plugin

type ErrNeeder

type ErrNeeder interface {
	SetErr(w io.Writer)
}

type Errer

type Errer interface {
	Err() io.Writer
}

type InNeeder

type InNeeder interface {
	SetIn(r io.Reader)
}

type Initer

type Initer interface {
	Init(ctx context.Context, root string, args []string) error
}

type Inner

type Inner interface {
	In() io.Reader
}

type Needer

type Needer = plugins.Needer

type OutNeeder

type OutNeeder interface {
	SetOut(w io.Writer)
}

type Outer

type Outer interface {
	Out() io.Writer
}

type StderrNeeder

type StderrNeeder = plugio.ErrNeeder

type StdinNeeder

type StdinNeeder = plugio.InNeeder

type StdoutNeeder

type StdoutNeeder = plugio.OutNeeder

Directories

Path Synopsis
sdk

Jump to

Keyboard shortcuts

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