mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
add some comments
This commit is contained in:
parent
36e98b0299
commit
3bd0bda57e
@ -2,12 +2,10 @@ package cryptolive
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"time"
|
||||
|
||||
"github.com/cizixs/gohttp"
|
||||
|
||||
"reflect"
|
||||
|
||||
"github.com/olebedev/config"
|
||||
"github.com/senorprogrammer/wtf/wtf"
|
||||
)
|
||||
|
11
wtf.go
11
wtf.go
@ -13,6 +13,7 @@ import (
|
||||
"github.com/senorprogrammer/wtf/bamboohr"
|
||||
"github.com/senorprogrammer/wtf/clocks"
|
||||
"github.com/senorprogrammer/wtf/cmdrunner"
|
||||
"github.com/senorprogrammer/wtf/cryptolive"
|
||||
"github.com/senorprogrammer/wtf/gcal"
|
||||
"github.com/senorprogrammer/wtf/git"
|
||||
"github.com/senorprogrammer/wtf/github"
|
||||
@ -154,9 +155,12 @@ var (
|
||||
)
|
||||
|
||||
func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
||||
// Always in alphabetical order
|
||||
bamboohr.Config = Config
|
||||
clocks.Config = Config
|
||||
cmdrunner.Config = Config
|
||||
wtf.Config = Config
|
||||
cryptolive.Config = Config
|
||||
gcal.Config = Config
|
||||
git.Config = Config
|
||||
github.Config = Config
|
||||
@ -165,19 +169,20 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
||||
newrelic.Config = Config
|
||||
opsgenie.Config = Config
|
||||
power.Config = Config
|
||||
prettyweather.Config = Config
|
||||
security.Config = Config
|
||||
status.Config = Config
|
||||
system.Config = Config
|
||||
textfile.Config = Config
|
||||
todo.Config = Config
|
||||
weather.Config = Config
|
||||
prettyweather.Config = Config
|
||||
wtf.Config = Config
|
||||
|
||||
// Always in alphabetical order
|
||||
Widgets = []wtf.Wtfable{
|
||||
bamboohr.NewWidget(),
|
||||
clocks.NewWidget(),
|
||||
cmdrunner.NewWidget(),
|
||||
cryptolive.NewWidget(),
|
||||
gcal.NewWidget(),
|
||||
git.NewWidget(app, pages),
|
||||
github.NewWidget(app, pages),
|
||||
@ -186,13 +191,13 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
||||
newrelic.NewWidget(),
|
||||
opsgenie.NewWidget(),
|
||||
power.NewWidget(),
|
||||
prettyweather.NewWidget(),
|
||||
security.NewWidget(),
|
||||
status.NewWidget(),
|
||||
system.NewWidget(date, version),
|
||||
textfile.NewWidget(app, pages),
|
||||
todo.NewWidget(app, pages),
|
||||
weather.NewWidget(app, pages),
|
||||
prettyweather.NewWidget(),
|
||||
}
|
||||
|
||||
FocusTracker = wtf.FocusTracker{
|
||||
|
Loading…
x
Reference in New Issue
Block a user