internal

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IdeNames = []string{
	"idea",
	"pycharm",
	"webstorm",
	"phpstorm",
	"clion",
	"rider",
	"datagrip",
	"rubymine",
	"appcode",
	"studio",
}

Functions

func DefineFlags

func DefineFlags() (helpFlag, dryRunFlag, allIdesFlag, allFilesFlag, repatchFlag, currentShellFlag *bool)

func DetermineShell

func DetermineShell(currentShellFlag bool) string

func FindMatchingFiles

func FindMatchingFiles(dirPath string, selectedIDEs []JetBrainsIDE) []string

func GetFilesToPatch

func GetFilesToPatch(matchingFiles []string, allFilesFlag bool) []string

func GetShellPath

func GetShellPath(shell string) string

func PatchFiles

func PatchFiles(filesToPatch []string, shellPath string, dryRunFlag, repatchFlag bool)

func ReadLine

func ReadLine() string

Types

type JetBrainsIDE

type JetBrainsIDE int
const (
	IntelliJ JetBrainsIDE = iota
	PyCharm
	WebStorm
	PhpStorm
	CLion
	Rider
	DataGrip
	RubyMine
	AppCode
	Studio
)

func AllIDEs

func AllIDEs() []JetBrainsIDE

func FromString

func FromString(input string) (JetBrainsIDE, bool)

func GetSelectedIDEs

func GetSelectedIDEs(allIdesFlag bool) []JetBrainsIDE

func (JetBrainsIDE) String

func (ide JetBrainsIDE) String() string

Jump to

Keyboard shortcuts

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