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

Function newGuestsShowCmd

internal/cli/guests.go:193–204  ·  view source on GitHub ↗

── guests show ──────────────────────────────────────────────────────────────

()

Source from the content-addressed store, hash-verified

191// ── guests show ──────────────────────────────────────────────────────────────
192
193func newGuestsShowCmd() *cobra.Command {
194 return &cobra.Command{
195 Use: "show <vmid>",
196 Short: "Show details for a specific guest",
197 Long: "Show detailed information for a guest identified by VMID.",
198 Example: ` pvetui guests show 100
199 pvetui --profile prod guests show 100`,
200 Args: cobra.ExactArgs(1),
201 RunE: runGuestsShow,
202 ValidArgsFunction: completeVMIDs,
203 }
204}
205
206func runGuestsShow(cmd *cobra.Command, args []string) error {
207 vmid, err := parseVMID(args[0])

Callers 1

newGuestsCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected