(ctx context.Context, app *components.App, node *api.Node)
| 78 | } |
| 79 | |
| 80 | func (p *Plugin) openSelector(ctx context.Context, app *components.App, node *api.Node) error { |
| 81 | if app == nil { |
| 82 | return fmt.Errorf("application context unavailable") |
| 83 | } |
| 84 | |
| 85 | if node == nil { |
| 86 | return fmt.Errorf("no node selected") |
| 87 | } |
| 88 | |
| 89 | sshUser := resolveSSHUser(app, node) |
| 90 | if sshUser == "" { |
| 91 | app.ShowMessageSafe("SSH user not configured. Please set PROXMOX_SSH_USER or profile ssh_user.") |
| 92 | |
| 93 | return nil |
| 94 | } |
| 95 | |
| 96 | selector := NewScriptSelector(app, node, nil, sshUser) |
| 97 | selector.Show() |
| 98 | |
| 99 | return nil |
| 100 | } |
| 101 | |
| 102 | func (p *Plugin) openSelectorForLXC(ctx context.Context, app *components.App, node *api.Node, vm *api.VM) error { |
| 103 | if app == nil { |
nothing calls this directly
no test coverage detected