mirror of
https://github.com/taigrr/wtf
synced 2026-03-26 00:22:21 -07:00
create another module to use another ipinfo api
This commit is contained in:
4
wtf.go
4
wtf.go
@@ -22,6 +22,7 @@ import (
|
||||
"github.com/senorprogrammer/wtf/gitlab"
|
||||
"github.com/senorprogrammer/wtf/help"
|
||||
"github.com/senorprogrammer/wtf/ipinfo"
|
||||
"github.com/senorprogrammer/wtf/ipinfohigherlimit"
|
||||
"github.com/senorprogrammer/wtf/jira"
|
||||
"github.com/senorprogrammer/wtf/newrelic"
|
||||
"github.com/senorprogrammer/wtf/opsgenie"
|
||||
@@ -188,6 +189,8 @@ func addWidget(app *tview.Application, pages *tview.Pages, widgetName string) {
|
||||
Widgets = append(Widgets, gitlab.NewWidget(app, pages))
|
||||
case "ipinfo":
|
||||
Widgets = append(Widgets, ipinfo.NewWidget())
|
||||
case "ipinfohigherlimit":
|
||||
Widgets = append(Widgets, ipinfohigherlimit.NewWidget())
|
||||
case "jira":
|
||||
Widgets = append(Widgets, jira.NewWidget())
|
||||
case "newrelic":
|
||||
@@ -229,6 +232,7 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
||||
github.Config = Config
|
||||
gitlab.Config = Config
|
||||
ipinfo.Config = Config
|
||||
ipinfohigherlimit.Config = Config
|
||||
jira.Config = Config
|
||||
newrelic.Config = Config
|
||||
opsgenie.Config = Config
|
||||
|
||||
Reference in New Issue
Block a user