1
0
mirror of https://github.com/taigrr/wtf synced 2026-03-21 14:12:17 -07:00

WTF-748 Fixes and improves module templating (#786)

Fixes and improves the module templating for creating new bare-bones
text widgets.

This command:

    WTF_WIDGET_NAME=MyNewWidget go generate -run=text

now properly generates:

    * the module directory in the /modules directory
    * the widget.go file
    * the settings.go file

with no linter warnings or errors.

Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
Chris Cummer
2019-12-14 08:46:02 -08:00
committed by GitHub
parent 1686c9a6a9
commit 703619bf0a
7 changed files with 84 additions and 45 deletions

View File

@@ -24,5 +24,4 @@ func (widget *Widget) display() {
widget.Redraw(func() (string, string, bool) {
return widget.CommonSettings().Title, renderWidget(*widget.settings), false
})
}