cli

package
v0.0.0-...-72c59f2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// IO to be used by the app
	iox.IO

	// Web app to be used by the app
	web.App

	// Server to be used by the app
	// If nil, a default server will be created.
	Server *http.Server

	// Port to listen on. Defaults to 3000.
	Port int

	// Env to be used by the app
	// If nil, os.Getenv will be used.
	*Env
	// contains filtered or unexported fields
}

func (*App) Describe

func (a *App) Describe() string

func (*App) Done

func (a *App) Done() <-chan struct{}

func (*App) Getenv

func (a *App) Getenv(key string) (s string)

func (*App) Main

func (a *App) Main(ctx context.Context, pwd string, args []string) error

func (*App) Print

func (a *App) Print(w io.Writer) error

func (*App) SetIO

func (a *App) SetIO(oi iox.IO)

type Env

type Env struct {
	// contains filtered or unexported fields
}

func (*Env) Getenv

func (e *Env) Getenv(key string) string

func (*Env) Setenv

func (e *Env) Setenv(key string, value string)

Jump to

Keyboard shortcuts

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