Documentation
¶
Index ¶
- func DetectPackageManager(dir string) string
- type BunInstallCmd
- type Executor
- type GoBuildCmd
- type GoBuildOptions
- type GoFmtCmd
- type GoInstallCmd
- type GoInstallOptions
- type GoModCmd
- type GoModOptions
- type GoModTidyCmd
- type GoRunCmd
- type GoRunOptions
- type GoTestCmd
- type GoTestOptions
- type GoVetCmd
- type NpmInstallCmd
- type NpmRunCmd
- type Output
- type OutputSetter
- type PnpmInstallCmd
- type RouteOptions
- type ShellCmd
- type TaskRefCmd
- type YarnInstallCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectPackageManager ¶
Types ¶
type BunInstallCmd ¶
func BunInstall ¶
func BunInstall() *BunInstallCmd
func (*BunInstallCmd) Run ¶
func (b *BunInstallCmd) Run() error
type Executor ¶
type Executor interface {
Run() error
}
func Route ¶
func Route(cmdStr string, opts RouteOptions) Executor
type GoBuildCmd ¶
type GoBuildCmd struct {
Output
Opts GoBuildOptions
Dir string
Env []string
}
func GoBuild ¶
func GoBuild(opts GoBuildOptions) *GoBuildCmd
func (*GoBuildCmd) Run ¶
func (g *GoBuildCmd) Run() error
type GoBuildOptions ¶
type GoInstallCmd ¶
type GoInstallCmd struct {
Output
Opts GoInstallOptions
Dir string
Env []string
}
func GoInstall ¶
func GoInstall(opts GoInstallOptions) *GoInstallCmd
func (*GoInstallCmd) Run ¶
func (g *GoInstallCmd) Run() error
type GoInstallOptions ¶
type GoInstallOptions struct {
Package string
}
type GoModCmd ¶
type GoModCmd struct {
Output
Opts GoModOptions
Dir string
Env []string
}
func GoMod ¶
func GoMod(opts GoModOptions) *GoModCmd
type GoModOptions ¶
type GoModTidyCmd ¶
func GoModTidy ¶
func GoModTidy() *GoModTidyCmd
func (*GoModTidyCmd) Run ¶
func (g *GoModTidyCmd) Run() error
type GoRunCmd ¶
type GoRunCmd struct {
Output
Opts GoRunOptions
Dir string
Env []string
}
func GoRun ¶
func GoRun(opts GoRunOptions) *GoRunCmd
type GoRunOptions ¶
type GoTestCmd ¶
type GoTestCmd struct {
Output
Opts GoTestOptions
Dir string
Env []string
}
func GoTest ¶
func GoTest(opts GoTestOptions) *GoTestCmd
type GoTestOptions ¶
type NpmInstallCmd ¶
func NpmInstall ¶
func NpmInstall() *NpmInstallCmd
func (*NpmInstallCmd) Run ¶
func (n *NpmInstallCmd) Run() error
type Output ¶
Output is embedded in every command type to give the executor one uniform way to redirect a command's streams. The executor captures into a buffer by default and streams live when verbose; a nil writer discards (the os/exec default of /dev/null).
type OutputSetter ¶
OutputSetter is implemented (via the embedded Output) by every command type, so the executor can set streams without a type switch.
type PnpmInstallCmd ¶
func PnpmInstall ¶
func PnpmInstall() *PnpmInstallCmd
func (*PnpmInstallCmd) Run ¶
func (p *PnpmInstallCmd) Run() error
type RouteOptions ¶
type TaskRefCmd ¶
func (*TaskRefCmd) Run ¶
func (t *TaskRefCmd) Run() error
type YarnInstallCmd ¶
func YarnInstall ¶
func YarnInstall() *YarnInstallCmd
func (*YarnInstallCmd) Run ¶
func (y *YarnInstallCmd) Run() error
Click to show internal directories.
Click to hide internal directories.