Skip to content

Commit

Permalink
doc_test: add 'er'
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Jun 7, 2019
1 parent 097a55c commit 1dad236
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/man_examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import (
"github.com/spf13/cobra/doc"
)

func er(msg interface{}) {
cobra.Er(msg)
}

func ExampleGenManTree() {
cmd := &cobra.Command{
Use: "test",
Expand Down

0 comments on commit 1dad236

Please sign in to comment.