Help us shape the future of Go! Take the 2026 Go Developer Survey

executil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package executil resolves and starts command-line tools consistently across supported desktop platforms.

Index

Constants

View Source
const (
	AntigravityACPRegistryID = "antigravity-acp"
	AntigravityACPProgram    = "agy_acp_server"

	AntigravityACPUnixRootRel     = ".local/share/quartet/agents/antigravity-acp"
	AntigravityACPUnixLauncherRel = ".local/bin/agy_acp_server"
	AntigravityACPUnixCLIRel      = ".local/bin/agy"

	AntigravityACPWindowsRootRel = "AppData/Local/quartet/agents/antigravity-acp"
	AntigravityACPWindowsCLIRel  = "AppData/Local/agy/bin"

	AntigravityACPVersionFile   = "VERSION"
	AntigravityACPLaunchDirFile = "LAUNCH_DIR"
)

Official Antigravity ACP server layout. The catalog uninstall paths and LookPath must stay on these home-relative locations: the registry archive is not placed on PATH by Google's installer.

Variables

This section is empty.

Functions

func AntigravityACPRoot

func AntigravityACPRoot() (string, error)

AntigravityACPRoot is the directory that holds the official ACP server payload for the current user. It matches the home-relative uninstall path.

func Command

func Command(name string, args ...string) *exec.Cmd

func CommandContext

func CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd

func LookPath

func LookPath(name string) (string, error)

LookPath first uses the process PATH, then checks user-scoped directories used by the official installers in the built-in Agent catalog. This lets a just-installed CLI work without restarting quartet-web merely to inherit an updated shell or Windows User PATH.

func ShellCommand

func ShellCommand(program string, args []string, env map[string]string) string

ShellCommand renders structured argv for a user to run manually. It is not used to execute subprocesses, which continue to use Command directly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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