1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Closes #29. wtf.go --help [module name] returns help text if any is available.

This commit is contained in:
Chris Cummer
2018-05-22 20:34:33 -07:00
parent 9e9ef9371d
commit ff49ecb082
7 changed files with 47 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ import (
// Config is a pointer to the global config object
var Config *config.Config
const helpText = `
const HelpText = `
Keyboard commands for Git:
/: Show/hide this help window
@@ -132,7 +132,7 @@ func (widget *Widget) showHelp() {
widget.app.SetFocus(widget.View)
}
modal := wtf.NewBillboardModal(helpText, closeFunc)
modal := wtf.NewBillboardModal(HelpText, closeFunc)
widget.pages.AddPage("help", modal, false, true)
widget.app.SetFocus(modal)