commands

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 11 Imported by: 0

README

commands

import "github.com/eunomie/dague/internal/commands"

Index

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List struct {
	// contains filtered or unexported fields
}

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 added in v0.12.3

func (l *List) RunDeps(ctx context.Context, deps []string, conf *config.Dague) error

type Runnable

type Runnable func(ctx context.Context, args []string, conf *config.Dague, opts map[string]interface{}) error

Jump to

Keyboard shortcuts

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