mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-28 20:13:33 +00:00
chore: remove extra [FLAGS] from volume commands help, add SERVICE for inspect
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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.",
|
||||||
|
|||||||
Reference in New Issue
Block a user