Commit 8508cce
authored
Group CLI options into sections in help docs (#2272)
### What
Move the doc-gen binary code into its own crate, separate from the
soroban-cli crate, and have it be dependent on the unmerged pull request
to clap-markdown that adds support for grouping cli options:
- ConnorGray/clap-markdown#48
### Why
The grouped options experience is a massive improvement. It makes the
help documentation easier to scan and understand. It's the way the
options are organised on the command line and the help markdown
documentation should follow suite. While the pull request adds the
feature upstream, the pull request hasn't been accepted yet.
The clap-markdown dependency isn't needed for the stellar-cli other than
doc-gen, so it is in any case good to get the dependency outside of the
soroban-cli crate, so that it isn't downloaded by cargo everytime
someone installs the stellar-cli. Moving doc-gen into its own crate is
trivial because the soroban-cli is designed to be embedded, and achieves
that. Additionally because the doc-gen crate does not need to be
published it can reference the unreleased pull request without issue.1 parent 5b13f4c commit 8508cce
10 files changed
Lines changed: 1184 additions & 660 deletions
File tree
- .github/workflows
- cmd
- doc-gen
- src
- soroban-cli
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
| |||
133 | 129 | | |
134 | 130 | | |
135 | 131 | | |
136 | | - | |
137 | 132 | | |
138 | 133 | | |
139 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
262 | 265 | | |
263 | 266 | | |
264 | 267 | | |
| |||
0 commit comments