Skip to content

Commit

Permalink
Add function godocs
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Jul 15, 2017
1 parent 8cede79 commit 7819b8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/pretty/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ import (
"strings"
)

// Bash markdown-quotes a bash command for insertion into help text.
func Bash(s string) string {
return fmt.Sprintf("`%s`", s)
}

// LongDesc is used for formatting help text for a commands Long Description.
// It de-dents it and trims it.
func LongDesc(s string) string {
s = heredoc.Doc(s)
s = strings.TrimSpace(s)
Expand Down

0 comments on commit 7819b8a

Please sign in to comment.