app

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBuild

func RunBuild(opts BuildOptions) error

RunBuild 运行构建

func ValidateConfig

func ValidateConfig(configPath string) error

ValidateConfig 验证配置文件

Types

type App

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

App 应用程序 (保留向后兼容)

func New

func New() *App

New 创建新的应用程序

func (*App) Run

func (a *App) Run() error

Run 运行应用程序

func (*App) RunWithConfig

func (a *App) RunWithConfig(configPath string) error

RunWithConfig 使用指定配置文件运行

func (*App) ValidateConfigLegacy

func (a *App) ValidateConfigLegacy(configPath string) error

ValidateConfigLegacy 仅验证配置(保留向后兼容)

type BuildOptions

type BuildOptions struct {
	ConfigFile   string   // 配置文件路径
	ValidateOnly bool     // 仅验证
	StageStart   int      // 开始阶段 (0-based)
	StageEnd     int      // 结束阶段 (0-based), -1 表示到最后
	OnlyTasks    []string // 仅执行指定名称的任务
	TargetServer string   // 仅部署到指定服务器(可选)
}

BuildOptions 构建选项

Jump to

Keyboard shortcuts

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