mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08: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:
@@ -28,7 +28,7 @@ func (t *tokenSource) Token() (*oauth2.Token, error) {
|
||||
|
||||
/* -------------------- Widget -------------------- */
|
||||
|
||||
// Widget is the container for transmission data
|
||||
// Widget is the container for droplet data
|
||||
type Widget struct {
|
||||
view.KeyboardWidget
|
||||
view.ScrollableWidget
|
||||
|
||||
Reference in New Issue
Block a user