File tree 2 files changed +18
-6
lines changed
2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,17 @@ type flagpole struct {
38
38
func NewCommand (logger log.Logger , streams cmd.IOStreams ) * cobra.Command {
39
39
flags := & flagpole {}
40
40
cmd := & cobra.Command {
41
- Args : cobra .NoArgs ,
42
- // TODO(bentheelder): more detailed usage
41
+ Args : cobra .NoArgs ,
43
42
Use : "cluster" ,
44
43
Short : "Deletes a cluster" ,
45
- Long : "Deletes a resource" ,
44
+ Long : `Deletes a Kind cluster from the system.
45
+
46
+ This is an idempotent operation, meaning it may be called multiple times without
47
+ failing (like "rm -f"). If the cluster resources exist they will be deleted, and
48
+ if the cluster is already gone it will just return success.
49
+
50
+ Errors will only occur if the cluster resources exist and are not able to be deleted.
51
+ ` ,
46
52
RunE : func (cmd * cobra.Command , args []string ) error {
47
53
cli .OverrideDefaultName (cmd .Flags ())
48
54
return deleteCluster (logger , flags )
Original file line number Diff line number Diff line change @@ -37,11 +37,17 @@ type flagpole struct {
37
37
func NewCommand (logger log.Logger , streams cmd.IOStreams ) * cobra.Command {
38
38
flags := & flagpole {}
39
39
cmd := & cobra.Command {
40
- Args : cobra .MinimumNArgs (0 ),
41
- // TODO(bentheelder): more detailed usage
40
+ Args : cobra .MinimumNArgs (0 ),
42
41
Use : "clusters" ,
43
42
Short : "Deletes one or more clusters" ,
44
- Long : "Deletes a resource" ,
43
+ Long : `Deletes one or more Kind clusters from the system.
44
+
45
+ This is an idempotent operation, meaning it may be called multiple times without
46
+ failing (like "rm -f"). If the cluster resources exist they will be deleted, and
47
+ if the cluster is already gone it will just return success.
48
+
49
+ Errors will only occur if the cluster resources exist and are not able to be deleted.
50
+ ` ,
45
51
RunE : func (cmd * cobra.Command , args []string ) error {
46
52
if ! flags .All && len (args ) == 0 {
47
53
return errors .New ("no cluster names provided" )
You can’t perform that action at this time.
0 commit comments