commands
import "github.com/eunomie/dague/internal/commands"
Index
- type List
- func NewList() *List
- func (l *List) Run(ctx context.Context, name string, args []string, conf *config.Dague, opts map[string]interface{}) error
- func (l *List) RunDeps(ctx context.Context, deps []string, conf *config.Dague) error
- func (l *List) goBuild(ctx context.Context, args []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goDoc(ctx context.Context, _ []string, conf *config.Dague, opts map[string]interface{}) error
- func (l *List) goExec(ctx context.Context, args []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goFmt(ctx context.Context, _ []string, conf *config.Dague, opts map[string]interface{}) error
- func (l *List) goFmtPrint(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goFmtWrite(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goImportsPrint(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goImportsWrite(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goLint(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goLintGolangCILint(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goLintGovuln(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goMod(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goModDownload(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) goTest(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
- func (l *List) register(name string, runnable Runnable)
- func (l *List) task(ctx context.Context, args []string, conf *config.Dague, _ map[string]interface{}) error
- type Runnable
type List
type List struct {
cmds map[string]Runnable
}
func NewList
func NewList() *List
func (*List) Run
func (l *List) Run(ctx context.Context, name string, args []string, conf *config.Dague, opts map[string]interface{}) error
func (*List) RunDeps
func (l *List) RunDeps(ctx context.Context, deps []string, conf *config.Dague) error
func (*List) goBuild
func (l *List) goBuild(ctx context.Context, args []string, conf *config.Dague, _ map[string]interface{}) error
goBuild is a command to build a Go binary based on the local architecture.
func (*List) goDoc
func (l *List) goDoc(ctx context.Context, _ []string, conf *config.Dague, opts map[string]interface{}) error
goDoc is a command generating Go documentation into readme.md files.
func (*List) goExec
func (l *List) goExec(ctx context.Context, args []string, conf *config.Dague, _ map[string]interface{}) error
func (*List) goFmt
func (l *List) goFmt(ctx context.Context, _ []string, conf *config.Dague, opts map[string]interface{}) error
func (*List) goFmtPrint
func (l *List) goFmtPrint(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
func (*List) goFmtWrite
func (l *List) goFmtWrite(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
func (*List) goImportsPrint
func (l *List) goImportsPrint(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
func (*List) goImportsWrite
func (l *List) goImportsWrite(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
func (*List) goLint
func (l *List) goLint(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
func (*List) goLintGolangCILint
func (l *List) goLintGolangCILint(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
func (*List) goLintGovuln
func (l *List) goLintGovuln(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
func (*List) goMod
func (l *List) goMod(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
goMod is a command to run go mod tidy and export go.mod and go.sum files.
func (*List) goModDownload
func (l *List) goModDownload(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
goModDownload is a command to download go modules.
func (*List) goTest
func (l *List) goTest(ctx context.Context, _ []string, conf *config.Dague, _ map[string]interface{}) error
goTest is a command running Go tests.
func (*List) register
func (l *List) register(name string, runnable Runnable)
func (*List) task
func (l *List) task(ctx context.Context, args []string, conf *config.Dague, _ map[string]interface{}) error
type Runnable
type Runnable func(ctx context.Context, args []string, conf *config.Dague, opts map[string]interface{}) error
Generated by gomarkdoc