File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,20 @@ type Ecdysis struct {
31
31
// Command is an interface that represents a command that can be decorated and
32
32
// converted to a cobra.Command instance.
33
33
type Command interface {
34
+ // Usage is the one-line usage message.
35
+ // Recommended syntax is as follows:
36
+ // [ ] identifies an optional argument. Arguments that are not enclosed in
37
+ // brackets are required.
38
+ // ... indicates that you can specify multiple values for the previous
39
+ // argument.
40
+ // | indicates mutually exclusive information. You can use the argument
41
+ // to the left of the separator or the argument to the right of the
42
+ // separator. You cannot use both arguments in a single use of the
43
+ // command.
44
+ // { } delimits a set of mutually exclusive arguments when one of the
45
+ // arguments is required. If the arguments are optional, they are
46
+ // enclosed in brackets ([ ]).
47
+ // Example: add [-F file | -D dir]... [-f format] profile
34
48
Usage () string
35
49
}
36
50
You can’t perform that action at this time.
0 commit comments