── storage show ──────────────────────────────────────────────────────────────
()
| 184 | // ── storage show ────────────────────────────────────────────────────────────── |
| 185 | |
| 186 | func 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 | |
| 202 | func runStorageShow(cmd *cobra.Command, args []string) error { |
| 203 | ctx := context.Background() |