mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Add more 'man page' like functionality
This commit is contained in:
@@ -3,9 +3,9 @@ package help
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
//"github.com/wtfutil/wtf/cfg"
|
||||
"github.com/olebedev/config"
|
||||
"github.com/wtfutil/wtf/maker"
|
||||
"github.com/wtfutil/wtf/utils"
|
||||
)
|
||||
|
||||
func Display(moduleName string, config *config.Config) {
|
||||
@@ -18,5 +18,8 @@ func Display(moduleName string, config *config.Config) {
|
||||
|
||||
func helpFor(moduleName string, config *config.Config) string {
|
||||
widget := maker.MakeWidget(nil, nil, moduleName, moduleName, config, config)
|
||||
return widget.HelpText()
|
||||
result := ""
|
||||
result += utils.StripColorTags(widget.HelpText())
|
||||
result += widget.ConfigText()
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user