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

Function newStorageShowCmd

internal/cli/storage.go:186–200  ·  view source on GitHub ↗

── storage show ──────────────────────────────────────────────────────────────

()

Source from the content-addressed store, hash-verified

184// ── storage show ──────────────────────────────────────────────────────────────
185
186func newStorageShowCmd() *cobra.Command {
187 cmd := &cobra.Command{
188 Use: "show <node> <storage>",
189 Short: "Show details for a specific storage",
190 Args: cobra.ExactArgs(2),
191 Example: ` pvetui storage show pve01 local-zfs`,
192 RunE: runStorageShow,
193 }
194
195 cmd.Flags().StringP("output", "o", "json", "Output format: json or table")
196
197 cmd.ValidArgsFunction = completeStorageNames
198
199 return cmd
200}
201
202func runStorageShow(cmd *cobra.Command, args []string) error {
203 ctx := context.Background()

Callers 1

newStorageCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected