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). The result is computed once and cached for the life of the process.
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 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.
Click to show internal directories.
Click to hide internal directories.