* doc: Add and edit docs

* doc: Add tests
This commit is contained in:
Albert Nigmatzianov
2017-04-19 14:39:58 +02:00
committed by GitHub
parent b6cb395893
commit f95d58bdf3
9 changed files with 95 additions and 25 deletions

View File

@ -13,9 +13,6 @@ import (
"github.com/spf13/cobra"
)
var _ = fmt.Println
var _ = os.Stderr
func translate(in string) string {
return strings.Replace(in, "-", "\\-", -1)
}
@ -153,7 +150,7 @@ func TestGenManTree(t *testing.T) {
header := &GenManHeader{Section: "2"}
tmpdir, err := ioutil.TempDir("", "test-gen-man-tree")
if err != nil {
t.Fatalf("Failed to create tempdir: %s", err.Error())
t.Fatalf("Failed to create tmpdir: %s", err.Error())
}
defer os.RemoveAll(tmpdir)