Browse code

Update cobra to v1.5.1

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>

Kenfe-Mickael Laventure authored on 2017/01/14 06:32:36
Showing 2 changed files
... ...
@@ -125,7 +125,7 @@ github.com/matttproud/golang_protobuf_extensions v1.0.0
125 125
 github.com/pkg/errors 839d9e913e063e28dfd0e6c7b7512793e0a48be9
126 126
 
127 127
 # cli
128
-github.com/spf13/cobra v1.5 https://github.com/dnephin/cobra.git
128
+github.com/spf13/cobra v1.5.1 https://github.com/dnephin/cobra.git
129 129
 github.com/spf13/pflag dabebe21bf790f782ea4c7bbd2efc430de182afd
130 130
 github.com/inconshreveable/mousetrap 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75
131 131
 github.com/flynn-archive/go-shlex 3f9db97f856818214da2e1057f8ad84803971cff
... ...
@@ -66,7 +66,7 @@ func GenManTreeFromOpts(cmd *cobra.Command, opts GenManTreeOptions) error {
66 66
 		separator = opts.CommandSeparator
67 67
 	}
68 68
 	basename := strings.Replace(cmd.CommandPath(), " ", separator, -1)
69
-	filename := filepath.Join(opts.Path, basename + "." + section)
69
+	filename := filepath.Join(opts.Path, basename+"."+section)
70 70
 	f, err := os.Create(filename)
71 71
 	if err != nil {
72 72
 		return err
... ...
@@ -197,7 +197,7 @@ func genMan(cmd *cobra.Command, header *GenManHeader) []byte {
197 197
 	manPrintOptions(buf, cmd)
198 198
 	if len(cmd.Example) > 0 {
199 199
 		fmt.Fprintf(buf, "# EXAMPLE\n")
200
-		fmt.Fprintf(buf, "```\n%s\n```\n", cmd.Example)
200
+		fmt.Fprintf(buf, "\n%s\n\n", cmd.Example)
201 201
 	}
202 202
 	if hasSeeAlso(cmd) {
203 203
 		fmt.Fprintf(buf, "# SEE ALSO\n")