mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Move WidgetMaker functionality into /app
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/olebedev/config"
|
||||
"github.com/wtfutil/wtf/maker"
|
||||
"github.com/wtfutil/wtf/app"
|
||||
"github.com/wtfutil/wtf/utils"
|
||||
)
|
||||
|
||||
@@ -18,7 +18,7 @@ func Display(moduleName string, config *config.Config) {
|
||||
}
|
||||
|
||||
func helpFor(moduleName string, config *config.Config) string {
|
||||
widget := maker.MakeWidget(nil, nil, moduleName, config)
|
||||
widget := app.MakeWidget(nil, nil, moduleName, config)
|
||||
|
||||
result := ""
|
||||
result += utils.StripColorTags(widget.HelpText())
|
||||
|
||||
Reference in New Issue
Block a user