mk

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoFmt

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

func ProjectHasMigrate

func ProjectHasMigrate(projectPath string) bool

func ProjectHasWeb added in v1.3.0

func ProjectHasWeb(projectPath string) bool

Types

type Builder

type Builder struct {
	WorkingDir string
	Migrate    bool
}

func NewBuilder

func NewBuilder(wd string, migrate bool) *Builder

func (*Builder) Build

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

type Runner

type Runner struct {
	WorkingDir string
	Binary     string
	Args       []string
	Background bool
	Term       *term.Terminal
}

func NewBackgroundRunner added in v1.3.0

func NewBackgroundRunner(term *term.Terminal, wd, binary string, args ...string) *Runner

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