chore: remove extra [FLAGS] from volume commands help, add SERVICE for inspect

This commit is contained in:
Pavel Sviderski
2025-05-13 10:24:16 +10:00
parent 8f00e0082e
commit 683ad22358
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ type inspectOptions struct {
func NewInspectCommand() *cobra.Command { func NewInspectCommand() *cobra.Command {
opts := inspectOptions{} opts := inspectOptions{}
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "inspect", Use: "inspect SERVICE",
Short: "Display detailed information on a service.", Short: "Display detailed information on a service.",
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
+1 -1
View File
@@ -26,7 +26,7 @@ func NewCreateCommand() *cobra.Command {
opts := createOptions{} opts := createOptions{}
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "create [FLAGS] VOLUME_NAME", Use: "create VOLUME_NAME",
Short: "Create a volume on a specific machine.", Short: "Create a volume on a specific machine.",
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
+1 -1
View File
@@ -20,7 +20,7 @@ func NewInspectCommand() *cobra.Command {
opts := inspectOptions{} opts := inspectOptions{}
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "inspect [FLAGS] VOLUME_NAME", Use: "inspect VOLUME_NAME",
Short: "Display detailed information on a volume.", Short: "Display detailed information on a volume.",
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
+1 -1
View File
@@ -23,7 +23,7 @@ func NewListCommand() *cobra.Command {
opts := listOptions{} opts := listOptions{}
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "ls [FLAGS]", Use: "ls",
Aliases: []string{"list"}, Aliases: []string{"list"},
Short: "List volumes across all machines in the cluster.", Short: "List volumes across all machines in the cluster.",
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
+1 -1
View File
@@ -21,7 +21,7 @@ func NewRemoveCommand() *cobra.Command {
opts := removeOptions{} opts := removeOptions{}
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "rm [FLAGS] VOLUME_NAME [VOLUME_NAME...]", Use: "rm VOLUME_NAME [VOLUME_NAME...]",
Aliases: []string{"remove", "delete"}, Aliases: []string{"remove", "delete"},
Short: "Remove one or more volumes.", Short: "Remove one or more volumes.",
Long: "Remove one or more volumes. You cannot remove a volume that is in use by a container.", Long: "Remove one or more volumes. You cannot remove a volume that is in use by a container.",