embeddedcli

package
v1.0.30-preview.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path added in v1.0.4

func Path() string

Path returns the absolute path to the embedded Copilot CLI, installing it on first call if necessary. It returns an empty string when no embedded CLI was configured via Setup (e.g. a build compiled without the embedded runtime) or installation failed. Set COPILOT_CLI_INSTALL_VERBOSE=1 for installation errors. The result is cached for the life of the process, except cache-directory selection failures, which can be retried after correcting the environment.

func Setup

func Setup(cfg Config)

Setup sets the embedded GitHub Copilot CLI install configuration. The CLI will be lazily installed when needed.

Types

type Config

type Config = embeddedcli.Config

Config defines the inputs used to install and locate the embedded Copilot CLI.

Cli and CliHash are required. If Dir is empty, the CLI is installed into the per-user cache directory or a protected fallback cache. When Version is set, the CLI and runtime library are installed into a version-specific child directory so multiple versions can coexist. Linux musl alternatives, when provided, are selected automatically. License, when provided, is written next to the installed binary.

Jump to

Keyboard shortcuts

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