embeddedcli

package
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Path = sync.OnceValue(func() string {
	setupMu.Lock()
	defer setupMu.Unlock()
	if !setupDone {
		return ""
	}
	pathInitialized = true
	path := install()
	return path
})

Functions

func Setup

func Setup(cfg Config)

Types

type Config

type Config struct {
	Cli     io.Reader
	CliHash []byte

	License []byte

	Dir     string
	Version string
}

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 system cache directory. Version is used to suffix the installed binary name to allow multiple versions to coexist. 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