command

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App() *cli.App

func Context

func Context() context.Context

func Format

func Format(ctx context.Context, rs []io.Reader, info FormatInfo) error

func GetURI

func GetURI(c *cli.Context) (uri string, err error)

func Lint

func Lint(ctx context.Context, cln *client.Client, uri string, info LintInfo) error

func ParseModuleURI

func ParseModuleURI(ctx context.Context, cln *client.Client, stdin io.Reader, uri string) (*ast.Module, error)

func Run

func Run(ctx context.Context, cln *client.Client, uri string, info RunInfo) (err error)

func Tree

func Tree(ctx context.Context, cln *client.Client, uri string, info TreeInfo) (err error)

func Vendor

func Vendor(ctx context.Context, cln *client.Client, uri string, info VendorInfo) (err error)

Types

type ControlDebugger

type ControlDebugger func(context.Context, codegen.Debugger) error

func ControlDebuggerTUI

func ControlDebuggerTUI(stdin io.Reader, stdout, stderr io.Writer) ControlDebugger

type FormatInfo

type FormatInfo struct {
	Write bool
}

type LintInfo

type LintInfo struct {
	Fix    bool
	Stdin  io.Reader
	Stderr io.Writer
}

type RunInfo

type RunInfo struct {
	DAP             bool
	Tree            bool
	Backtrace       bool
	Targets         []string
	LLB             bool
	LogOutput       string
	DefaultPlatform string // format: osname/osarch

	Stdin  io.Reader
	Stderr io.Writer
	Stdout io.Writer

	Debug           bool
	ControlDebugger ControlDebugger

	// override defaults sources as necessary
	Environ []string
	Cwd     string
	Os      string
	Arch    string
}

type TreeInfo

type TreeInfo struct {
	Long   bool
	Stdin  io.Reader
	Stderr io.Writer
}

type VendorInfo

type VendorInfo struct {
	Targets []string
	Tidy    bool
	Stdin   io.Reader
	Stderr  io.Writer
}

Jump to

Keyboard shortcuts

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