wena

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 29 Imported by: 0

README

Wena Tool

go install gitee.com/go-wena/wena/cmd/wena@latest

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoDownload added in v0.0.4

func GoDownload(ctx context.Context, force bool, progress httpx.ProgressFunc) error

func GoExist added in v0.0.4

func GoExist(ctx context.Context) error

func PrintGoEnv added in v0.0.4

func PrintGoEnv(ctx context.Context, w io.Writer) error

func PrintGoVersion added in v0.0.4

func PrintGoVersion(ctx context.Context, w io.Writer) error

func ProjectInit added in v0.0.4

func ProjectInit(ctx context.Context, modulePath string, overwrite, verbose bool) (err error)

Types

type Engine

type Engine struct {
	Project
	// contains filtered or unexported fields
}

func New

func New(srcDIR string, builder *builder.Builder) (*Engine, error)

func (*Engine) Build

func (e *Engine) Build(ctx context.Context, br bool) error

Build 生成, run 指示是否生成后运行

func (*Engine) Clean added in v0.0.2

func (e *Engine) Clean(ctx context.Context) error

Clean 清理wena临时目录

func (*Engine) Watch

func (e *Engine) Watch(ctx context.Context, br bool) error

Watch 生成并监听工作目录

type Project added in v0.0.4

type Project struct {
	Name        string `json:"name" yaml:"name"`
	Version     string `json:"version" yaml:"version"`
	Description string `json:"description" yaml:"description"`
	Output      string `json:"output" yaml:"output"`
	Depend      string `json:"depend" yaml:"depend"`
	Keep        bool   `json:"keep" yaml:"keep"`
}

Directories

Path Synopsis
cmd
internal
dep
git
mod
run
utils
iox

Jump to

Keyboard shortcuts

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