Small cleanup

This commit is contained in:
Sam Coe 2020-11-04 12:40:40 +03:00
parent 241e90aa9b
commit 86906c6769
No known key found for this signature in database
GPG key ID: 8E322C20F811D086
2 changed files with 3 additions and 3 deletions

View file

@ -93,8 +93,8 @@ func GenMarkdownTreeCustom(cmd *cobra.Command, dir string, filePrepender, linkHa
}
basename := strings.Replace(cmd.CommandPath(), " ", "_", -1) + ".md"
if override, ok := cmd.Annotations["markdown:basename"]; ok {
basename = override + ".md"
if basenameOverride, found := cmd.Annotations["markdown:basename"]; found {
basename = basenameOverride + ".md"
}
filename := filepath.Join(dir, basename)

View file

@ -7,7 +7,7 @@ import (
var HelpTopics = map[string]map[string]string{
"environment": {
"short": "Environmental variables that can be used with gh",
"short": "Environment variables that can be used with gh",
"long": heredoc.Doc(`
GITHUB_TOKEN: an authentication token for github.com API requests. Setting this avoids
being prompted to authenticate and takes precedence over previously stored credentials.