use more clear name

This commit is contained in:
vilmibm 2020-04-22 14:31:09 -05:00
parent 3c8b87c9c6
commit 9641eee38a
2 changed files with 20 additions and 20 deletions

View file

@ -87,7 +87,7 @@ func titleBodySurvey(cmd *cobra.Command, providedTitle, providedBody string, def
if err != nil {
return nil, fmt.Errorf("could not read config: %w", err)
}
editorName, _ := cfg.Get(defaultHostname, "editor")
editorCommand, _ := cfg.Get(defaultHostname, "editor")
var inProgress titleBody
inProgress.Title = defs.Title
@ -116,7 +116,7 @@ func titleBodySurvey(cmd *cobra.Command, providedTitle, providedBody string, def
bodyQuestion := &survey.Question{
Name: "body",
Prompt: &surveyext.GhEditor{
EditorName: editorName,
EditorCommand: editorCommand,
Editor: &survey.Editor{
Message: "Body",
FileName: "*.md",