cli

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Dir    string
	Stdout io.Writer
	Stderr io.Writer
	Stdin  io.Reader
	Env    []string
}

func New

func New() *CLI

func (*CLI) Deps added in v0.0.10

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

func (*CLI) Parse

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

func (*CLI) Run added in v0.0.10

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

func (*CLI) Serve

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

func (*CLI) TxtarPack added in v0.0.6

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

func (*CLI) TxtarUnpack added in v0.0.6

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

func (*CLI) Watch

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

type Deps added in v0.0.10

type Deps struct {
	Paths          []string
	IncludeTests   bool
	IncludeModules bool
	IncludeStdlib  bool
}

type Run added in v0.0.10

type Run struct {
	Chdir string
	Clear bool
	Path  string
	Args  []string
}

type Serve

type Serve struct {
	Listen      string
	Live        bool
	Dir         string
	Browser     bool
	Includes    []string
	Excludes    []string
	NoGitIgnore bool
}

type TxtarPack added in v0.0.6

type TxtarPack struct {
	Dir         string
	Includes    []string
	Excludes    []string
	NoGitIgnore bool
}

type TxtarUnpack added in v0.0.6

type TxtarUnpack struct {
	Path        string
	Dir         string
	Force       bool
	Includes    []string
	Excludes    []string
	NoGitIgnore bool
}

type Watch

type Watch struct {
	Clear       bool
	Command     string
	Args        []string
	NoGitIgnore bool
	Includes    []string
	Excludes    []string
}

Jump to

Keyboard shortcuts

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