logical/aws: help

This commit is contained in:
Mitchell Hashimoto
2015-04-03 21:10:54 -07:00
parent 65159bd9c8
commit 105e68387a
6 changed files with 60 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"regexp"
"sort"
"strings"
"sync"
"time"
@@ -201,12 +202,12 @@ func (b *Backend) handleRootHelp() (*logical.Response, error) {
p := pathsMap[route]
pathData = append(pathData, rootHelpTemplatePath{
Path: route,
Help: p.HelpSynopsis,
Help: strings.TrimSpace(p.HelpSynopsis),
})
}
help, err := executeTemplate(rootHelpTemplate, &rootHelpTemplateData{
Help: b.Help,
Help: strings.TrimSpace(b.Help),
Paths: pathData,
})
if err != nil {