1
0
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:
Sean Smith
2019-05-24 00:06:10 -04:00
parent 9a877b5e04
commit d8f337884f
8 changed files with 109 additions and 14 deletions

View File

@@ -51,15 +51,15 @@ type Sigils struct {
type Common struct {
Colors
Module
Position
Position `help:"Defines where in the grid this modules widget will be displayed."`
Sigils
Enabled bool
RefreshInterval int
Enabled bool `help:"Determines whether or not this module is executed and if its data displayed onscreen." values:"true, false"`
RefreshInterval int `help:"How often, in seconds, this module will update its data." values:"A positive integer, 0..n." optional:"true"`
Title string
Config *config.Config
focusChar int
focusChar int `help:"Define one of the number keys as a short cut key to access the widget." optional:"true"`
}
func NewCommonSettingsFromModule(name, defaultTitle string, moduleConfig *config.Config, globalSettings *config.Config) *Common {