ide

package
v1.4.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PythonInstallCommand added in v1.3.1

func PythonInstallCommand(userName, pkg string) (string, error)

PythonInstallCommand returns the shell command that installs a Python package for the given user, preferring uv when present and falling back to pip3 then pip. Returns an error if none are available.

When uv is used, the package is installed as a uv-managed tool (isolated env, shim binary placed in ~/.local/bin); this avoids touching system Python and sidesteps PEP 668 externally-managed-environment errors. The pip fallbacks preserve the existing system-install behavior.

func ReusesAuthSock

func ReusesAuthSock(ide string) bool

ReusesAuthSock determines if the --reuse-ssh-auth-sock flag should be passed to the ssh server helper based on the IDE. Browser based IDEs use a browser tunnel to communicate with the remote server instead of an independent ssh connection.

Types

type IDE

type IDE interface {
	Install() error
}

type Option

type Option struct {
	// Name is the name of the IDE option
	Name string `json:"name,omitempty"`

	// Description is the description of the IDE option
	Description string `json:"description,omitempty"`

	// Default is the default value for this option
	Default string `json:"default,omitempty"`

	// Enum is the possible values for this option
	Enum []string `json:"enum,omitempty"`

	// ValidationPattern to use to validate this option
	ValidationPattern string `json:"validationPattern,omitempty"`

	// ValidationMessage to print if validation fails
	ValidationMessage string `json:"validationMessage,omitempty"`
}

type Options

type Options map[string]Option

func (Options) GetValue

func (o Options) GetValue(values map[string]config.OptionValue, key string) string

type ProgressReader

type ProgressReader struct {
	Reader    io.Reader
	TotalSize int64
	// contains filtered or unexported fields
}

func (*ProgressReader) Read

func (p *ProgressReader) Read(b []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL