Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandPrefix ¶
ExpandPrefix expands alias prefix with the target command based on provided configuration. The function requires already sanitized input raw command - no whitespace characters at the beginning or end are allowed.
func ListExactForExecutor ¶
ListExactForExecutor lists aliases for configured commands that are equal to the executor name. For example, for the `botkube/kubectl` executor it lists aliases which are defined for the `kubectl` command only, without any additional verbs and flags.
The aliases slice is already sorted alphabetically.
func ListForBuiltinVerbPrefix ¶
ListForBuiltinVerbPrefix lists aliases for builtin commands that starts with the verb prefix names.
func ListForExecutorPrefix ¶
ListForExecutorPrefix lists aliases for configured commands that starts with the executor prefix names. For example, for the `botkube/kubectl` executor it lists aliases which are defined for the `kubectl` command, and also the `kubectl` commands that contain additional verbs and flags, like `kubectl get pods`.
The aliases slice is already sorted alphabetically.
Types ¶
This section is empty.