-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(docs): generate cli docs directly from the struct #12717
base: master
Are you sure you want to change the base?
Changes from 13 commits
02f3c9d
de3e0a8
ed47ad6
e3c452e
8233c8e
a8b4a75
e542893
7c4702f
f616568
bb579bf
e557f34
34a9037
4f8d129
f7fe538
6b8888e
d8f4d19
6a8bef4
d7daa99
8075d5a
acf0a33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,19 +13,19 @@ var Commands = []*cli.Command{ | |
lcli.WithCategory("basic", lcli.MultisigCmd), | ||
lcli.WithCategory("basic", lcli.FilplusCmd), | ||
lcli.WithCategory("basic", lcli.PaychCmd), | ||
lcli.WithCategory("developer", lcli.AuthCmd), | ||
lcli.WithCategory("developer", lcli.AuthCmd()), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do these need to become functions? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Previously, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See below, I went for a bit of a trek to find out why this is the case and came up with an easier approach than rewriting all of these. |
||
lcli.WithCategory("developer", lcli.MpoolCmd), | ||
lcli.WithCategory("developer", StateCmd), | ||
lcli.WithCategory("developer", lcli.ChainCmd), | ||
lcli.WithCategory("developer", lcli.LogCmd), | ||
lcli.WithCategory("developer", lcli.WaitApiCmd), | ||
lcli.WithCategory("developer", lcli.FetchParamCmd), | ||
lcli.WithCategory("developer", lcli.LogCmd()), | ||
lcli.WithCategory("developer", lcli.WaitApiCmd()), | ||
lcli.WithCategory("developer", lcli.FetchParamCmd()), | ||
lcli.WithCategory("developer", lcli.EvmCmd), | ||
lcli.WithCategory("developer", lcli.IndexCmd), | ||
lcli.WithCategory("network", lcli.NetCmd), | ||
lcli.WithCategory("network", lcli.SyncCmd), | ||
lcli.WithCategory("network", lcli.F3Cmd), | ||
lcli.WithCategory("status", lcli.StatusCmd), | ||
lcli.PprofCmd, | ||
lcli.VersionCmd, | ||
lcli.PprofCmd(), | ||
lcli.VersionCmd(), | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akaladarshi if you want to take a shortcut on this task, we could scope it just to doing what you've done so far - generate the docs from the structs, but leave the existing workflow that requires building the binaries in place, i.e. restore this Makefile target to the way it was. The remaining problem is the need to generate the default config files which currently need the binaries to do it, but we could defer that to a separate PR and get this one landed.