Documentation
¶
Overview ¶
Package manifest loads and merges YAML command registries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SubcommandCommands = map[string]bool{ "docker": true, "kubectl": true, "svn": true, "systemctl": true, "aws": true, }
SubcommandCommands identifies commands that use subcommand-style dispatch (e.g. "docker ps", "kubectl get"). Both the validator and server packages reference this map so they stay in sync.
Functions ¶
func LoadEmbedded ¶
Types ¶
type Manifest ¶
type Manifest struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Category string `yaml:"category"`
Timeout int `yaml:"timeout"`
Deny bool `yaml:"deny"`
Reason string `yaml:"reason"`
Flags []Flag `yaml:"flags"`
AllowsPathArgs bool `yaml:"allows_path_args"`
RestrictedPaths []string `yaml:"restricted_paths"`
Stdin bool `yaml:"stdin"`
Stdout bool `yaml:"stdout"`
RegexArgPosition *int `yaml:"regex_arg_position"`
// contains filtered or unexported fields
}
type ManifestError ¶
type ManifestError struct {
Message string
}
func (*ManifestError) Error ¶
func (e *ManifestError) Error() string
Click to show internal directories.
Click to hide internal directories.