ShowCommandMenu displays a list of available commands for selection
(targetType TargetType, target string, onClose func())
| 42 | |
| 43 | // ShowCommandMenu displays a list of available commands for selection |
| 44 | func (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. |
| 50 | func (u *UIManager) ShowVMCommandMenu(vm VM, onClose func()) { |
no test coverage detected