ide

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDE

type IDE interface {
	// OpenCommand returns the command to open the IDE
	OpenCommand(folder string) *exec.Cmd
	// Name returns the name of the IDE
	Name() string
	// ID returns the ID of the IDE
	ID() IDE_ID
	// RecommendPatterns returns a list of repo patterns that the IDE is recommended for
	RecommendPatterns() []string
}

func GetIDE

func GetIDE(id string) IDE

GetIDE returns the IDE with the given ID, or false if it does not exist

func GetIDEs

func GetIDEs() []IDE

GetIDEs returns a copy of the map of IDEs

type IDE_ID

type IDE_ID string
const (
	CUSTOM     IDE_ID = "custom"
	CUSTOM_WLS IDE_ID = "wsl-custom"
)
const (
	VSCODE     IDE_ID = "vscode"
	VSCODE_WLS IDE_ID = "wsl-vscode"
)

func DetermineIDEFromSystem

func DetermineIDEFromSystem() []IDE_ID

DetermineIDEFromSystem determines from the system what types of IDE are installed

func (IDE_ID) Get

func (i IDE_ID) Get() IDE

func (IDE_ID) String

func (i IDE_ID) String() string

Jump to

Keyboard shortcuts

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