bootstrap

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	// Optional.
	//
	// ID is an optional stable job identifier used by TUI and runners.
	// When empty, the runtime derives it from BaseDir.
	//
	// RU: ID — необязательный стабильный идентификатор job для TUI и runner'ов.
	// Если поле пустое, runtime вычисляет его из BaseDir.
	ID string

	// Required.
	//
	// BaseDir points to the bootstrap package directory that contains the dependency declaration.
	//
	// RU: BaseDir указывает на директорию bootstrap-пакета, где лежит декларация зависимостей.
	BaseDir string

	// Optional.
	//
	// Options contains advanced overrides for non-default bootstrap layout.
	//
	// RU: Options содержит advanced override-настройки для нестандартного bootstrap layout.
	Options *Options
}

Job describes one bootstrap generation unit driven by a Go package with Definition(). Required field: BaseDir. Optional fields: ID, Options.

RU: Job описывает одну задачу bootstrap-генерации на основе Go package с Definition(). RU: Обязательное поле: BaseDir. RU: Опциональные поля: ID, Options.

type Mode

type Mode string

Mode controls bootstrap manifest loading behavior. RU: Mode управляет режимом загрузки bootstrap manifest.

const (
	// ModeStrict uses the strict manifest parser path.
	// RU: ModeStrict использует strict parser path для manifest.
	ModeStrict Mode = "strict"
	// ModeReflect is a compatibility label for the reflect-style loading path.
	// RU: ModeReflect — compatibility label для reflect-style режима загрузки.
	ModeReflect Mode = "reflect"
)

type Options

type Options struct {
	// Optional.
	//
	// Package overrides the import path of the Go package that exports the bootstrap definition.
	// When empty, the runtime derives it from module path + BaseDir.
	//
	// RU: Package переопределяет import path Go package, который экспортирует bootstrap definition.
	// Если поле пустое, runtime выводит его из module path + BaseDir.
	Package string
	// Optional.
	//
	// Definition overrides the exported function name that returns the bootstrap spec.
	// When empty, the runtime uses `Definition`.
	//
	// RU: Definition переопределяет имя экспортируемой функции, возвращающей bootstrap spec.
	// Если поле пустое, runtime использует `Definition`.
	Definition string
	// Optional.
	//
	// OutDir overrides the output directory for generated bootstrap code.
	// When empty, the runtime uses `<BaseDir>/generated`.
	//
	// RU: OutDir переопределяет директорию вывода для generated bootstrap-кода.
	// Если поле пустое, runtime использует `<BaseDir>/generated`.
	OutDir string
	// Optional.
	//
	// Mode controls how the bootstrap definition is loaded.
	// When empty, the runtime uses `strict`.
	//
	// RU: Mode управляет тем, как загружается bootstrap definition.
	// Если поле пустое, runtime использует `strict`.
	Mode Mode
}

Options contains advanced bootstrap generation overrides. All fields are optional. Zero value keeps the BaseDir-driven happy path.

RU: Options содержит advanced override-настройки bootstrap-генерации. RU: Все поля опциональны. Нулевое значение оставляет BaseDir-driven happy path.

Directories

Path Synopsis
cmd
genbootstrap command
internal

Jump to

Keyboard shortcuts

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