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

Method ShowCommandMenu

internal/plugins/command-runner/ui.go:44–47  ·  view source on GitHub ↗

ShowCommandMenu displays a list of available commands for selection

(targetType TargetType, target string, onClose func())

Source from the content-addressed store, hash-verified

42
43// ShowCommandMenu displays a list of available commands for selection
44func (u *UIManager) ShowCommandMenu(targetType TargetType, target string, onClose func()) {
45 commands := u.executor.GetAllowedCommands(targetType)
46 u.showCommandMenu(targetType, target, commands, onClose)
47}
48
49// ShowVMCommandMenu displays a list of commands tailored to a VM's OS.
50func (u *UIManager) ShowVMCommandMenu(vm VM, onClose func()) {

Callers 2

ShowHostCommandMenuMethod · 0.80

Calls 2

showCommandMenuMethod · 0.95
GetAllowedCommandsMethod · 0.45

Tested by

no test coverage detected