cli

package
v0.7.17 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute added in v0.6.0

func Execute(ctx context.Context, opts RunOptions) error

Execute handles the 'run' command logic, dispatching to Session or Watch mode.

func ResetSession added in v0.6.0

func ResetSession(sessionID string)

ResetSession clears the session data for the given ID.

func RunSession added in v0.3.3

func RunSession(ctx context.Context, opts RunOptions, initialContext map[string]any) error

RunSession executes a single session of Trellis.

func RunWatch

func RunWatch(ctx context.Context, opts RunOptions)

RunWatch executes Trellis in development mode, reloading on file changes.

Types

type RunOptions added in v0.6.0

type RunOptions struct {
	RepoPath     string
	Headless     bool
	Watch        bool
	JSON         bool
	Debug        bool
	Context      string // Raw JSON string
	SessionID    string
	Fresh        bool
	RedisURL     string
	ToolsPath    string
	UnsafeInline bool
}

RunOptions contains all the configuration for the Run command.

type SignalContext added in v0.6.0

type SignalContext = lifecycle.SignalContext

Jump to

Keyboard shortcuts

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