You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 6. Handle wait behavior (same pattern as provision.go)
381
-
iftui.IsInteractive() &&!verbose {
382
-
// Use TUI for interactive terminals
383
-
returnrunStartTUI(cmd.Context(), ns, name)
384
-
}
385
-
// Stream detailed status (verbose or non-interactive)
386
-
returnpollStartStatus(cmd.Context(), ns, name)
325
+
returnfmt.Errorf("'dvb start' has been replaced by 'dvb node start --all'\n\nUsage:\n dvb node start --all # start all nodes\n dvb node start validator-0 # start a single node")
387
326
},
388
327
}
389
-
390
-
cmd.Flags().StringVarP(&namespace, "namespace", "n", "", "Namespace (defaults to server default)")
391
-
cmd.Flags().BoolVar(&noWait, "no-wait", false, "Return immediately without waiting")
392
-
cmd.Flags().BoolVarP(&verbose, "verbose", "v", false, "Show verbose status updates")
393
-
cmd.Flags().BoolVarP(&force, "force", "f", false, "Force restart without confirmation prompt")
394
-
395
328
returncmd
396
329
}
397
330
398
-
funcnewStopCmd() *cobra.Command {
399
-
varnamespacestring
400
-
331
+
// newDeprecatedStopCmd returns a hidden "stop" command that tells users to use "dvb node stop --all".
returnfmt.Errorf("'dvb stop' has been replaced by 'dvb node stop --all'\n\nUsage:\n dvb node stop --all # stop all nodes\n dvb node stop validator-0 # stop a single node")
431
340
},
432
341
}
433
-
434
-
cmd.Flags().StringVarP(&namespace, "namespace", "n", "", "Namespace (defaults to server default)")
435
-
436
342
returncmd
437
343
}
438
344
345
+
// printJSON marshals v to indented JSON and writes it to stdout.
346
+
funcprintJSON(vinterface{}) error {
347
+
out, err:=json.MarshalIndent(v, "", " ")
348
+
iferr!=nil {
349
+
returnfmt.Errorf("failed to marshal json: %w", err)
350
+
}
351
+
fmt.Println(string(out))
352
+
returnnil
353
+
}
354
+
439
355
// getBinaryNameFromPlugin returns the CLI binary name for a given plugin.
0 commit comments