Documentation
¶
Overview ¶
Package ide centralizes the logic for opening labctl playgrounds in local IDEs (VSCode-family editors and Zed) over an SSH proxy.
Index ¶
- Constants
- Variables
- func Binary(ide string) string
- func Command(ctx context.Context, ide string, args []string) *exec.Cmd
- func EnsureInstalled(ide string) error
- func IsSupported(name string) bool
- func LaunchArgs(ide, user, host, port, workDir string) []string
- func SupportedList() string
- func UserHomeDir(user string) string
Constants ¶
const ( Antigravity = "antigravity" VSCode = "code" Cursor = "cursor" Windsurf = "windsurf" Zed = "zed" )
Variables ¶
var Supported = []string{Antigravity, VSCode, Cursor, Windsurf, Zed}
Supported lists the IDE CLI names labctl knows how to open, in display order.
Functions ¶
func Binary ¶ added in v0.1.96
Binary returns the CLI binary name for the given IDE. For most IDEs the user-facing name and the binary name coincide; Antigravity ships its CLI as "antigravity-ide".
func Command ¶
Command builds the exec.Cmd that launches the IDE with args, taking care of the extra cmd /C wrapping required on Windows.
func EnsureInstalled ¶
EnsureInstalled returns a friendly error if the IDE's CLI binary isn't on PATH.
func IsSupported ¶
IsSupported reports whether name is one of the supported IDEs.
func LaunchArgs ¶
LaunchArgs returns the arguments to pass to the IDE binary to open workDir on the remote machine reachable at host:port as user over the SSH proxy.
func SupportedList ¶
func SupportedList() string
SupportedList returns the supported IDE names as a quoted, comma-separated string for help text and error messages.
func UserHomeDir ¶
UserHomeDir returns the remote home directory for the given login user.
Types ¶
This section is empty.