Documentation
¶
Index ¶
- func AskConfirmation(a *app.App) bool
- func HandleBranch(ctx context.Context, a *app.App, r BranchReq) (presenters.BranchView, error)
- func HandleBuild(ctx context.Context, a *app.App, r BuildReq) (presenters.BuildView, error)
- func HandleConnect(ctx context.Context, a *app.App, r ConnectReq) (presenters.ConnectView, error)
- func HandleCopy(ctx context.Context, a *app.App, r CopyReq) (presenters.CopyView, error)
- func HandleExecute(ctx context.Context, a *app.App, r ExecuteReq) (presenters.ExecuteView, error)
- func HandleHistory(ctx context.Context, a *app.App, r HistoryReq) (presenters.HistoryView, error)
- func HandleKill(ctx context.Context, a *app.App, r KillReq) error
- func HandlePause(ctx context.Context, a *app.App, r PauseReq) (presenters.PauseView, error)
- func HandleResume(ctx context.Context, a *app.App, r ResumeReq) (presenters.ResumeView, error)
- func HandleRun(ctx context.Context, a *app.App, r RunReq) (presenters.RunView, error)
- func HandleRunCommit(ctx context.Context, a *app.App, r RunCommitReq) (presenters.RunCommitView, error)
- func HandleStatus(ctx context.Context, a *app.App, req StatusReq) (presenters.StatusView, error)
- func HandleUpgrade(a *app.App, r UpgradeReq) error
- type BranchReq
- type BuildReq
- type ConnectReq
- type CopyReq
- type ExecuteReq
- type HistoryReq
- type KillDTO
- type KillReq
- type PauseReq
- type PauseView
- type ResumeReq
- type RunCommitReq
- type RunCommitView
- type RunReq
- type RunView
- type StatusReq
- type UpgradeReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskConfirmation ¶
AskConfirmation uses the app prompter to confirm (fallback to default prompt if unavailable).
func HandleBranch ¶
func HandleBranch(ctx context.Context, a *app.App, r BranchReq) (presenters.BranchView, error)
func HandleBuild ¶
func HandleConnect ¶
func HandleConnect(ctx context.Context, a *app.App, r ConnectReq) (presenters.ConnectView, error)
func HandleCopy ¶
func HandleExecute ¶
func HandleExecute(ctx context.Context, a *app.App, r ExecuteReq) (presenters.ExecuteView, error)
func HandleHistory ¶
func HandleHistory(ctx context.Context, a *app.App, r HistoryReq) (presenters.HistoryView, error)
func HandleKill ¶
HandleKill orchestrates deletion flows. It currently prints via existing presenters/styles to minimize changes in Phase 1; a later phase can return DTOs for presenters to render.
func HandlePause ¶
func HandleResume ¶
func HandleResume(ctx context.Context, a *app.App, r ResumeReq) (presenters.ResumeView, error)
func HandleRunCommit ¶
func HandleRunCommit(ctx context.Context, a *app.App, r RunCommitReq) (presenters.RunCommitView, error)
func HandleStatus ¶
func HandleStatus(ctx context.Context, a *app.App, req StatusReq) (presenters.StatusView, error)
HandleStatus performs the status command logic using services and utilities.
func HandleUpgrade ¶
func HandleUpgrade(a *app.App, r UpgradeReq) error
Types ¶
type ConnectReq ¶
type ConnectReq struct{ Target string }
type ExecuteReq ¶
type HistoryReq ¶
type HistoryReq struct{ Target string }
type KillDTO ¶
type KillDTO struct {
Scope string `json:"scope"` // "vms"
Targets []string `json:"targets"`
Recursive bool `json:"recursive"`
DeletedIDs []string `json:"deletedIds,omitempty"`
DeletedByRef map[string][]string `json:"deletedByRef,omitempty"` // input target -> deleted ids
AffectedHead bool `json:"affectedHead,omitempty"`
}
KillDTO is a structured summary suitable for MCP outputs.
type RunCommitReq ¶
type RunCommitView ¶
type RunCommitView struct{ RootVmID, HeadTarget, CommitKey string }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.