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

Function newStorageListCmd

internal/cli/storage.go:72–90  ·  view source on GitHub ↗

── storage list ─────────────────────────────────────────────────────────────

()

Source from the content-addressed store, hash-verified

70// ── storage list ─────────────────────────────────────────────────────────────
71
72func newStorageListCmd() *cobra.Command {
73 cmd := &cobra.Command{
74 Use: "list",
75 Short: "List storages",
76 Long: `List storages across the cluster.
77
78Without --node, each (storage, node) pair is its own row — shared storages appear
79once per node they are active on, matching the TUI storage browser layout.`,
80 Example: ` pvetui storage list
81 pvetui storage list --node pve01
82 pvetui storage list --output table`,
83 RunE: runStorageList,
84 }
85
86 cmd.Flags().String("node", "", "Filter to a specific node")
87 cmd.Flags().StringP("output", "o", "json", "Output format: json or table")
88
89 return cmd
90}
91
92func runStorageList(cmd *cobra.Command, _ []string) error {
93 ctx := context.Background()

Callers 1

newStorageCmdFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected