mk

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildMigrateSkip = iota + 1
	BuildMigrateOnlyIfDoesntExist
	BuildMigrateAlways
)

Variables

This section is empty.

Functions

func GoFmt

func GoFmt(ctx context.Context, workingDir string) error

func ProjectHasMigrate

func ProjectHasMigrate(projectPath string) bool

Types

type Builder

type Builder struct {
	WorkingDir string
	Migrate    int
}

func NewBuilder

func NewBuilder(wd string, migrate int) *Builder

func (*Builder) Build

func (b *Builder) Build(ctx context.Context) error

type Runner

type Runner struct {
	WorkingDir string
	Binary     string
	Args       []string
}

func NewRunner

func NewRunner(wd, binary string, args ...string) *Runner

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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