Vendor libraries for github.com/spf13/cobra

This commit is contained in:
Alexander Neumann
2016-12-30 20:42:05 +01:00
committed by Zlatko Čalušić
parent e945404183
commit 6bee34700d
77 changed files with 14150 additions and 4 deletions

35
vendor/github.com/spf13/cobra/doc/man_examples_test.go generated vendored Normal file
View File

@@ -0,0 +1,35 @@
package doc_test
import (
"bytes"
"fmt"
"github.com/spf13/cobra"
"github.com/spf13/cobra/doc"
)
func ExampleCommand_GenManTree() {
cmd := &cobra.Command{
Use: "test",
Short: "my test program",
}
header := &doc.GenManHeader{
Title: "MINE",
Section: "3",
}
doc.GenManTree(cmd, header, "/tmp")
}
func ExampleCommand_GenMan() {
cmd := &cobra.Command{
Use: "test",
Short: "my test program",
}
header := &doc.GenManHeader{
Title: "MINE",
Section: "3",
}
out := new(bytes.Buffer)
doc.GenMan(cmd, header, out)
fmt.Print(out.String())
}