cli

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build added in v0.2.6

type Build struct {
	Flag *framework.Flag
}

type CLI added in v0.1.5

type CLI struct {
	Dir string
	Log string

	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	Env    []string

	// Closer is used to manage resources
	Closer closer

	// Used for testing
	Bus         pubsub.Client
	WebListener socket.Listener
	DevListener socket.Listener
	AFSListener socket.Listener
	// contains filtered or unexported fields
}

func New added in v0.1.5

func New(closer closer) *CLI

TODO: figuring out how the resource lifecycle should be managed. Ideally the closer is optional, and if it is not passed in, the CLI will manage the resources.

func (*CLI) Build added in v0.2.6

func (c *CLI) Build(ctx context.Context, in *Build) error

func (*CLI) Create added in v0.2.6

func (c *CLI) Create(ctx context.Context, in *Create) error

func (*CLI) Custom added in v0.2.6

func (c *CLI) Custom(ctx context.Context, in *Custom) error

func (*CLI) Generate added in v0.2.6

func (c *CLI) Generate(ctx context.Context, in *Generate) (err error)

func (*CLI) NewController added in v0.2.6

func (c *CLI) NewController(ctx context.Context, in *NewController) error

func (*CLI) Parse added in v0.2.6

func (c *CLI) Parse(ctx context.Context, args ...string) error

func (*CLI) Run added in v0.1.5

func (c *CLI) Run(ctx context.Context, in *Run) error

func (*CLI) ToolCacheClean added in v0.2.6

func (c *CLI) ToolCacheClean(ctx context.Context, in *ToolCacheClean) error

func (*CLI) ToolDS added in v0.2.6

func (c *CLI) ToolDS(ctx context.Context, in *ToolDS) error

func (*CLI) ToolDi added in v0.2.6

func (c *CLI) ToolDi(ctx context.Context, in *ToolDi) error

func (*CLI) ToolFsCat added in v0.2.6

func (c *CLI) ToolFsCat(ctx context.Context, in *ToolFsCat) error

func (*CLI) ToolFsLs added in v0.2.6

func (c *CLI) ToolFsLs(ctx context.Context, in *ToolFsLs) error

func (*CLI) ToolFsTree added in v0.2.6

func (c *CLI) ToolFsTree(ctx context.Context, in *ToolFsTree) error

func (*CLI) ToolFsTxtar added in v0.2.6

func (c *CLI) ToolFsTxtar(ctx context.Context, in *ToolFsTxtar) error

func (*CLI) ToolV8 added in v0.2.6

func (c *CLI) ToolV8(ctx context.Context, in *ToolV8) error

func (*CLI) Version added in v0.2.6

func (c *CLI) Version(ctx context.Context, in *Version) error

type Create added in v0.2.6

type Create struct {
	Module string
	Dev    bool
}

type Custom added in v0.2.6

type Custom struct {
	Closer *once.Closer
	Help   bool
	Args   []string
}

type Generate added in v0.2.6

type Generate struct {
	Flag      *framework.Flag
	ListenAFS string
	ListenDev string
	Packages  []string
}

type NewController added in v0.2.6

type NewController struct {
	Path    string
	Actions []string
}

type Run added in v0.1.5

type Run struct {
	Flag      *framework.Flag
	ListenAFS string
	ListenDev string
	ListenWeb string
	Watch     bool
}

type ToolCacheClean added in v0.2.6

type ToolCacheClean struct {
	Flag      *framework.Flag
	ListenDev string
}

type ToolDS added in v0.2.6

type ToolDS struct {
	Flag      *framework.Flag
	ListenDev string
}

type ToolDi added in v0.2.6

type ToolDi struct {
	Name         string
	Target       string
	Map          map[string]string
	Dependencies []string
	Externals    []string
	Hoist        bool
	Verbose      bool
}

type ToolFsCat added in v0.2.6

type ToolFsCat struct {
	Flag *framework.Flag
	Path string
}

type ToolFsLs added in v0.2.6

type ToolFsLs struct {
	Flag *framework.Flag
	Path string
}

type ToolFsTree added in v0.2.6

type ToolFsTree struct {
	Flag *framework.Flag
	Path string
}

type ToolFsTxtar added in v0.2.6

type ToolFsTxtar struct {
	Flag *framework.Flag
	Path string
}

type ToolV8 added in v0.2.6

type ToolV8 struct {
}

type Version added in v0.2.6

type Version struct {
	Key string
}

Jump to

Keyboard shortcuts

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