completion

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallShellCompletion

func InstallShellCompletion(Log *logger.Logger, cmd *cobra.Command) error

InstallShellCompletion installs shell completion for the detected shell

func UninstallShellCompletion

func UninstallShellCompletion(Log *logger.Logger) error

UninstallShellCompletion uninstalls shell completion for the detected shell

Types

type ShellType

type ShellType string

ShellType represents the detected shell type

const (
	ShellBash       ShellType = "bash"
	ShellZsh        ShellType = "zsh"
	ShellFish       ShellType = "fish"
	ShellPowerShell ShellType = "powershell"
	ShellUnknown    ShellType = "unknown"

	DirPerm  = 0750
	FilePerm = 0600
)

func DetectShell

func DetectShell(Log *logger.Logger) ShellType

DetectShell detects the current shell from environment variables

Jump to

Keyboard shortcuts

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