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
Copy file name to clipboardExpand all lines: CLAUDE.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,3 +146,9 @@ The tool supports configuration via:
146
146
f.StringVar(&myVar, "name", "", "description")
147
147
f.IntVar(&count, "count", 0, "description")
148
148
```
149
+
150
+
### Cobra Commands
151
+
- Command `Short` descriptions: sentence case with ending period, e.g., `"Generate a node list to seed a node."`
152
+
- Command `Long` descriptions: consider using embedded usage.md file via `//go:embed usage.md` pattern; when using inline strings, use sentence case with ending period for complete sentences
153
+
- Command `Short` should be brief (~50 characters or less), appears in help menus and command lists
154
+
- Command `Long` provides detailed explanation, can be empty if `Short` is sufficient
Copy file name to clipboardExpand all lines: cmd/abi/encode/encode.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ var (
17
17
18
18
varABIEncodeCmd=&cobra.Command{
19
19
Use: "encode [function signature] [args...]",
20
-
Short: "ABI encodes a function signature and the inputs",
20
+
Short: "ABI encodes a function signature and the inputs.",
21
21
Long: "[function-signature] is required and is a fragment in the form <function name>(<types...>). If the function signature has parameters, then those values would have to be passed as arguments after the function signature.",
0 commit comments