bootstrap

package
v0.5.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package bootstrap validates the temporary module used to select the Air CLI before an agent repository exists.

Index

Constants

View Source
const (
	// ModulePath marks a directory as an Airlock bootstrap module.
	ModulePath = "airlock.bootstrap"
	// ToolImport is the repository-local Air CLI package.
	ToolImport = "github.com/airlockrun/agentsdk/cmd/air"
)

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(dir string) (bool, error)

EnsureDir creates an absent directory and accepts only an empty directory or an exact Airlock bootstrap module. It reports whether bootstrap files exist.

func InitializeDir

func InitializeDir(dir, version string) error

InitializeDir writes a complete bootstrap go.mod into an empty directory. A complete file remains safe to retry if dependency resolution is interrupted.

func ResetDir

func ResetDir(dir string) error

ResetDir removes a validated bootstrap module so a scaffold can replace it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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