Skip to content

Commit

Permalink
change name of the module
Browse files Browse the repository at this point in the history
  • Loading branch information
Fengyalv committed Jun 9, 2018
1 parent aa1701c commit 97aafd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ipinfohigherlimit/widget.go → ipapi/widget.go
@@ -1,4 +1,4 @@
package ipinfohigherlimit
package ipapi

import (
"encoding/json"
Expand Down Expand Up @@ -43,7 +43,7 @@ type ipinfo struct {
// NewWidget constructor
func NewWidget() *Widget {
widget := Widget{
TextWidget: wtf.NewTextWidget(" IPInfo ", "ipinfohigherlimit", false),
TextWidget: wtf.NewTextWidget(" IPInfo ", "ipapi", false),
}

widget.View.SetWrap(false)
Expand Down
8 changes: 4 additions & 4 deletions wtf.go
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/senorprogrammer/wtf/github"
"github.com/senorprogrammer/wtf/help"
"github.com/senorprogrammer/wtf/ipinfo"
"github.com/senorprogrammer/wtf/ipinfohigherlimit"
"github.com/senorprogrammer/wtf/ipapi"
"github.com/senorprogrammer/wtf/jira"
"github.com/senorprogrammer/wtf/newrelic"
"github.com/senorprogrammer/wtf/opsgenie"
Expand Down Expand Up @@ -186,8 +186,8 @@ func addWidget(app *tview.Application, pages *tview.Pages, widgetName string) {
Widgets = append(Widgets, github.NewWidget(app, pages))
case "ipinfo":
Widgets = append(Widgets, ipinfo.NewWidget())
case "ipinfohigherlimit":
Widgets = append(Widgets, ipinfohigherlimit.NewWidget())
case "ipapi":
Widgets = append(Widgets, ipapi.NewWidget())
case "jira":
Widgets = append(Widgets, jira.NewWidget())
case "newrelic":
Expand Down Expand Up @@ -228,7 +228,7 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) {
git.Config = Config
github.Config = Config
ipinfo.Config = Config
ipinfohigherlimit.Config = Config
ipapi.Config = Config
jira.Config = Config
newrelic.Config = Config
opsgenie.Config = Config
Expand Down

0 comments on commit 97aafd6

Please sign in to comment.