Small cleanup
This commit is contained in:
parent
241e90aa9b
commit
86906c6769
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue