Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllowedCommands ¶
func GetAllowedCommands() []string
GetAllowedCommands returns a list of all allowed commands (for documentation/config)
func GetBlockedCommands ¶
func GetBlockedCommands() []string
GetBlockedCommands returns a list of all blocked commands (for documentation/config)
Types ¶
type CommandInfo ¶
type CommandInfo struct {
Name string // Command name
Type CommandType // external, builtin, alias, function
Path string // For external commands, the full path
Value string // For aliases, the expanded value
SubCommand string // For commands with subcommands, the detected subcommand
}
CommandInfo contains information about a detected command
type CommandType ¶
type CommandType string
CommandType represents the type of zsh command
const ( CommandTypeExternal CommandType = "external" CommandTypeBuiltin CommandType = "builtin" CommandTypeAlias CommandType = "alias" CommandTypeFunction CommandType = "function" )
Click to show internal directories.
Click to hide internal directories.