Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions go/embeddedcli/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ type Config = embeddedcli.Config
func Setup(cfg Config) {
embeddedcli.Setup(cfg)
}

// 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.
func Path() string {
return embeddedcli.Path()
}