shell

package
v0.0.0-...-410d34f Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

func RunArgs

func RunArgs(args []string, writer, errWriter io.Writer)

Types

type BuildCommand

type BuildCommand struct {
	CompileCommand
	// contains filtered or unexported fields
}

func (*BuildCommand) Action

func (c *BuildCommand) Action(*cli.Context) error

func (*BuildCommand) MakeFlags

func (c *BuildCommand) MakeFlags() []cli.Flag

type CommandBase

type CommandBase struct {
	Globals *GlobalParams
}

func Base

func Base(globals *GlobalParams) CommandBase

func (*CommandBase) Action

func (*CommandBase) Action(*cli.Context) error

func (*CommandBase) MakeFlags

func (c *CommandBase) MakeFlags() []cli.Flag

type Commands

type Commands struct {
	CommandBase

	Globals     *GlobalParams
	BuildCmd    *BuildCommand
	InstallCmd  *InstallCommand
	GenerateCmd *GenerateCommand
}

func NewCommands

func NewCommands(passthroughArgs []string) *Commands

type CompileCommand

type CompileCommand struct {
	CommandBase

	Imports     cli.StringSlice
	Replaces    cli.StringSlice
	USQLModule  string
	USQLVersion string
}

func MakeCompileCmd

func MakeCompileCmd(globals *GlobalParams) CompileCommand

func (*CompileCommand) MakeFlags

func (c *CompileCommand) MakeFlags() []cli.Flag

type GenerateCommand

type GenerateCommand struct {
	CompileCommand
	// contains filtered or unexported fields
}

func (*GenerateCommand) Action

func (c *GenerateCommand) Action(*cli.Context) error

func (*GenerateCommand) MakeFlags

func (c *GenerateCommand) MakeFlags() []cli.Flag

type GlobalParams

type GlobalParams struct {
	Verbose         bool
	PassthroughArgs []string
}

type InstallCommand

type InstallCommand struct {
	CompileCommand
}

func (*InstallCommand) Action

func (c *InstallCommand) Action(*cli.Context) error

Jump to

Keyboard shortcuts

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