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 ¶
const ( VSCode = "code" Cursor = "cursor" Windsurf = "windsurf" Zed = "zed" )
Variables ¶
Supported lists the IDE CLI names labctl knows how to open, in display order.
Functions ¶
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, e.g. `"code", "cursor", "windsurf", "zed"`.
func UserHomeDir ¶
UserHomeDir returns the remote home directory for the given login user.
Types ¶
This section is empty.