MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / GetAllowedCommands

Method GetAllowedCommands

internal/plugins/command-runner/executor.go:288–290  ·  view source on GitHub ↗

GetAllowedCommands returns the whitelist for a target type

(targetType TargetType)

Source from the content-addressed store, hash-verified

286
287// GetAllowedCommands returns the whitelist for a target type
288func (e *Executor) GetAllowedCommands(targetType TargetType) []string {
289 return e.validator.GetAllowedCommands(targetType)
290}
291
292// GetAllowedVMCommands returns the whitelist for the provided VM context.
293func (e *Executor) GetAllowedVMCommands(vm VM) []string {

Callers 3

ShowCommandMenuMethod · 0.45

Calls

no outgoing calls

Tested by 1