bootcompile

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package bootcompile implements the three boot-prompt compile commands. By default they act as the signed-in person; with --as-worker (cli#1872) the compile mutation carries this worktree's bound worker session. Authority, source selection and output addresses belong to the server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAgent

func NewAgent(f *cmdutil.Factory) *cobra.Command

NewAgent compiles the Agent's source into its system memory.

func NewAppAgent

func NewAppAgent(f *cmdutil.Factory) *cobra.Command

NewAppAgent compiles an installed Agent's source for an App.

func NewWorker

func NewWorker(f *cmdutil.Factory, resolve func(*cobra.Command, string) (string, error), batch Batch) *cobra.Command

NewWorker resolves a worker name in the selected App before compiling it. With no worker argument it runs batch over the App's workers.

Types

type Batch added in v0.34.0

type Batch func(*cobra.Command, BatchOptions) error

Batch runs the batch compile.

type BatchOptions added in v0.34.0

type BatchOptions struct {
	All   bool     // compile every live worker, not only changed ones
	Only  []string // restrict to these workers (names, ids or URNs)
	Apply bool     // write; without it the run is a dry run
	// SetPointer is nil for the server default (set) and false for
	// --no-set-pointer, exactly as the single-worker compile sends it.
	SetPointer *bool
	// AsWorker (cli#1872) sends the compile mutations through the bound
	// worker session; the batch resolves it before any request.
	AsWorker bool
}

BatchOptions are the flags of `team worker compile` with no worker argument (cli#1463): compile the App's workers in one run.

Jump to

Keyboard shortcuts

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