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 (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"reflect"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cizixs/gohttp"
|
"github.com/cizixs/gohttp"
|
||||||
|
|
||||||
"reflect"
|
|
||||||
|
|
||||||
"github.com/olebedev/config"
|
"github.com/olebedev/config"
|
||||||
"github.com/senorprogrammer/wtf/wtf"
|
"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/bamboohr"
|
||||||
"github.com/senorprogrammer/wtf/clocks"
|
"github.com/senorprogrammer/wtf/clocks"
|
||||||
"github.com/senorprogrammer/wtf/cmdrunner"
|
"github.com/senorprogrammer/wtf/cmdrunner"
|
||||||
|
"github.com/senorprogrammer/wtf/cryptolive"
|
||||||
"github.com/senorprogrammer/wtf/gcal"
|
"github.com/senorprogrammer/wtf/gcal"
|
||||||
"github.com/senorprogrammer/wtf/git"
|
"github.com/senorprogrammer/wtf/git"
|
||||||
"github.com/senorprogrammer/wtf/github"
|
"github.com/senorprogrammer/wtf/github"
|
||||||
@ -154,9 +155,12 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
||||||
|
// Always in alphabetical order
|
||||||
bamboohr.Config = Config
|
bamboohr.Config = Config
|
||||||
clocks.Config = Config
|
clocks.Config = Config
|
||||||
cmdrunner.Config = Config
|
cmdrunner.Config = Config
|
||||||
|
wtf.Config = Config
|
||||||
|
cryptolive.Config = Config
|
||||||
gcal.Config = Config
|
gcal.Config = Config
|
||||||
git.Config = Config
|
git.Config = Config
|
||||||
github.Config = Config
|
github.Config = Config
|
||||||
@ -165,19 +169,20 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
|||||||
newrelic.Config = Config
|
newrelic.Config = Config
|
||||||
opsgenie.Config = Config
|
opsgenie.Config = Config
|
||||||
power.Config = Config
|
power.Config = Config
|
||||||
|
prettyweather.Config = Config
|
||||||
security.Config = Config
|
security.Config = Config
|
||||||
status.Config = Config
|
status.Config = Config
|
||||||
system.Config = Config
|
system.Config = Config
|
||||||
textfile.Config = Config
|
textfile.Config = Config
|
||||||
todo.Config = Config
|
todo.Config = Config
|
||||||
weather.Config = Config
|
weather.Config = Config
|
||||||
prettyweather.Config = Config
|
|
||||||
wtf.Config = Config
|
|
||||||
|
|
||||||
|
// Always in alphabetical order
|
||||||
Widgets = []wtf.Wtfable{
|
Widgets = []wtf.Wtfable{
|
||||||
bamboohr.NewWidget(),
|
bamboohr.NewWidget(),
|
||||||
clocks.NewWidget(),
|
clocks.NewWidget(),
|
||||||
cmdrunner.NewWidget(),
|
cmdrunner.NewWidget(),
|
||||||
|
cryptolive.NewWidget(),
|
||||||
gcal.NewWidget(),
|
gcal.NewWidget(),
|
||||||
git.NewWidget(app, pages),
|
git.NewWidget(app, pages),
|
||||||
github.NewWidget(app, pages),
|
github.NewWidget(app, pages),
|
||||||
@ -186,13 +191,13 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
|||||||
newrelic.NewWidget(),
|
newrelic.NewWidget(),
|
||||||
opsgenie.NewWidget(),
|
opsgenie.NewWidget(),
|
||||||
power.NewWidget(),
|
power.NewWidget(),
|
||||||
|
prettyweather.NewWidget(),
|
||||||
security.NewWidget(),
|
security.NewWidget(),
|
||||||
status.NewWidget(),
|
status.NewWidget(),
|
||||||
system.NewWidget(date, version),
|
system.NewWidget(date, version),
|
||||||
textfile.NewWidget(app, pages),
|
textfile.NewWidget(app, pages),
|
||||||
todo.NewWidget(app, pages),
|
todo.NewWidget(app, pages),
|
||||||
weather.NewWidget(app, pages),
|
weather.NewWidget(app, pages),
|
||||||
prettyweather.NewWidget(),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FocusTracker = wtf.FocusTracker{
|
FocusTracker = wtf.FocusTracker{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user