bud

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 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 {
	Module *gomod.Module
	Env    []string
	Stdout io.Writer
	Stderr io.Writer
}

func (*App) Execute

func (a *App) Execute(ctx context.Context, args ...string) error

Execute a custom command

func (*App) Executor

func (a *App) Executor(ctx context.Context, args ...string) *exe.Cmd

func (*App) Run

func (a *App) Run(ctx context.Context, listener net.Listener) error

Run the app and wait for the result

func (*App) Start

func (a *App) Start(ctx context.Context, listener net.Listener) (*exe.Cmd, error)

Start the application

type Flag

type Flag struct {
	Embed  bool
	Hot    bool
	Minify bool
}

func (*Flag) Map

func (f *Flag) Map() map[string]string

Map flags into a map to be generated

type Project

type Project struct {
	Env    []string
	Stdout io.Writer
	Stderr io.Writer
	// contains filtered or unexported fields
}

func New

func New(fsys *overlay.FileSystem, module *gomod.Module) *Project

func (*Project) Compile

func (c *Project) Compile(ctx context.Context, flag *Flag) (*App, error)

Jump to

Keyboard shortcuts

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