Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBinaryPath ¶
GetBinaryPath returns the path to the termonaut binary
func GetCurrentWorkingDir ¶
func GetCurrentWorkingDir() string
GetCurrentWorkingDir returns the current working directory
func GetTerminalPID ¶
func GetTerminalPID() int
GetTerminalPID returns the current terminal process ID
func ValidateShellInstallation ¶
func ValidateShellInstallation() error
ValidateShellInstallation checks if the shell integration is working
Types ¶
type HookInstaller ¶
type HookInstaller struct {
// contains filtered or unexported fields
}
HookInstaller handles shell hook installation
func NewHookInstaller ¶
func NewHookInstaller(binaryPath string) (*HookInstaller, error)
NewHookInstaller creates a new hook installer
func (*HookInstaller) GetShellType ¶
func (h *HookInstaller) GetShellType() ShellType
GetShellType returns the detected shell type
func (*HookInstaller) Install ¶
func (h *HookInstaller) Install() error
Install installs the shell hook
func (*HookInstaller) InstallWithForce ¶
func (h *HookInstaller) InstallWithForce(force bool) error
InstallWithForce installs the shell hook with force option
func (*HookInstaller) IsInstalled ¶
func (h *HookInstaller) IsInstalled() (bool, error)
IsInstalled checks if the hook is already installed
func (*HookInstaller) Uninstall ¶
func (h *HookInstaller) Uninstall() error
Uninstall removes the shell hook
Click to show internal directories.
Click to hide internal directories.