Ryan Curtin
ef632ed1e1
Converting cobra to use OneCloudInc/cobra in all cases
2021-12-16 14:27:35 -05:00
Brian Meyers
96868d8f05
Only change the CLI tool to use OneCloudInc
2019-02-22 14:20:00 -05:00
Brian Meyers
9224a9a8f3
Rename packages to use OneCloud
2019-02-22 12:58:38 -05:00
James DeFelice
0ab5b6bcfc
doc: hide hidden parent flags ( #686 )
...
* fixes #685
2018-04-24 12:15:12 -04:00
Allen Sun
3a5f27b046
doc: Add a necessary blank line after SEE ALSO ( #592 )
...
Signed-off-by: Allen Sun <shlallen1990@gmail.com>
2017-12-04 11:43:02 +01:00
Allen Sun
45a52e208c
doc: Remove one additional blank line after Synopsis ( #591 )
...
Signed-off-by: Allen Sun <shlallen1990@gmail.com>
2017-12-04 10:21:50 +01:00
Albert Nigmatzianov
ca57f0f5db
doc: Ad help flag and cmd when generating docs
2017-05-20 19:28:06 +02:00
Albert Nigmatzianov
6bfe2ba1a2
doc: Add docs
2017-05-09 11:14:48 +02:00
Albert Nigmatzianov
97af803f3b
doc: Cleanup md_docs
...
Performance gain:
benchmark old ns/op new ns/op delta
BenchmarkGenMarkdownToFile-4 23096 10295 -55.43%
benchmark old allocs new allocs delta
BenchmarkGenMarkdownToFile-4 47 48 +2.13%
benchmark old bytes new bytes delta
BenchmarkGenMarkdownToFile-4 1984 2832 +42.74%
2017-04-26 21:30:17 +02:00
Albert Nigmatzianov
f95d58bdf3
Fix #401 ( #402 )
...
* doc: Add and edit docs
* doc: Add tests
2017-04-19 14:39:58 +02:00
Albert Nigmatzianov
0960ff7fa9
Rename IsHelpCommand to IsAdditionalHelpTopicCommand ( #398 )
...
Fixes #393
2017-03-09 10:37:15 -05:00
Garth Kidd
8e6aca4182
Use filepath.Join, not string math. Fixes #226 .
2016-01-17 11:25:20 +11:00
Daniel Martí
eb5040e69e
Treat write errors in markdown doc generation
...
This code was already using io.Writer, but was completely ignoring write
errors.
The most worrying part is how GenMarkdownTreeCustom used an unnecessary
buffer to then dump all of its contents on a file, and instead of
returning an error on file creation/writing, it would just exit the
entire program.
2016-01-06 12:21:04 +01:00
Daniel Martí
ea06b29c10
Simplify GenMarkdownTreeCustom signature
2016-01-06 11:59:08 +01:00
Frank Schroeder
b3f29e98e6
Issue #195 : Move doc generation into separate pkg
...
* Move man_docs and md_docs into new doc pkg
* Replace *bytes.Buffer with io.Writer
* Replace c == cmd.helpCommand with c.IsHelpCommand()
* Remove redundant len(children) == 0 check in HasSeeAlso
* Duplicate test setup for doc generation
2015-12-24 09:01:59 -05:00