mirror of
https://github.com/spf13/cobra.git
synced 2024-11-15 17:58:18 -07:00
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_test.go | ||
man_docs.go | ||
man_docs.md | ||
man_examples_test.go | ||
md_docs_test.go | ||
md_docs.go | ||
md_docs.md | ||
util.go |