forked from mirror/cobra
eb5040e69e
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. |
||
---|---|---|
.. | ||
cmd_test.go | ||
man_docs.go | ||
man_docs.md | ||
man_docs_test.go | ||
man_examples_test.go | ||
md_docs.go | ||
md_docs.md | ||
md_docs_test.go | ||
util.go |