cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 45 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cli is agent-vm's command line. The commands and options are those of 0.2's agent-vm.sh, with the additions and changes of 0.3 in CHANGELOG.md (--scratch, install, info, code, exit status 2 for wrong usage...).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LimaHome

func LimaHome(st state.Dir) string

LimaHome is where agent-vm's Lima keeps its VMs: its own, so that the user's limactl, of another version, never runs them, and nothing of the user's own Lima is touched. AGENT_VM_LIMA_HOME overrides it, made absolute.

func Main

func Main(args []string, io IO) int

Main runs agent-vm with args (os.Args[1:]) and returns its exit status.

Types

type IO

type IO struct {
	Stdin          io.Reader
	Stdout, Stderr io.Writer
}

IO is where a command reads and writes.

func Stdio

func Stdio() IO

Stdio is the process's own.

type VMOpts

type VMOpts struct {
	Disk, Memory, CPUs int // 0: not given
	SSHPort            int // -1: not given; 0 gives the port back to Lima
	Reset              bool
	ReadOnly           bool
	Scratch            bool
	UnsafeWritableGit  bool
	UnsafeNoPrompts    bool
	RM                 bool // --rm: delete the VM after the command
}

VMOpts are agent-vm's own options, for the commands that start a VM.

Jump to

Keyboard shortcuts

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