mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Merge branch 'master' into master
This commit is contained in:
commit
27a7b45384
@ -62,13 +62,13 @@ position Where in the grid this module&rsquo;s widget will be displayed.</de
|
|||||||
<pubDate>Fri, 08 Jun 2018 13:14:11 -0700</pubDate>
|
<pubDate>Fri, 08 Jun 2018 13:14:11 -0700</pubDate>
|
||||||
|
|
||||||
<guid>https://wtfutil.com/posts/modules/gitlab/</guid>
|
<guid>https://wtfutil.com/posts/modules/gitlab/</guid>
|
||||||
<description>Displays information about your projects hosted on Gitlab:
|
<description>Added in v0.0.8.
|
||||||
|
Displays information about your projects hosted on Gitlab:
|
||||||
Open Approval Requests All open merge requests that are requesting your approval.
|
Open Approval Requests All open merge requests that are requesting your approval.
|
||||||
Open Merge Requests All open merge requests created by you.
|
Open Merge Requests All open merge requests created by you.
|
||||||
Source Code wtf/gitlab/ Required ENV Variables Key: WTF_GITLAB_TOKEN Action: A Gitlab personal access token. Requires at least api access.
|
Source Code wtf/gitlab/ Required ENV Variables Key: WTF_GITLAB_TOKEN Action: A Gitlab personal access token. Requires at least api access.
|
||||||
Keyboard Commands Key: / Action: Open/close the widget&rsquo;s help window.
|
Keyboard Commands Key: / Action: Open/close the widget&rsquo;s help window.
|
||||||
Key: h Action: Show the previous project.
|
Key: h Action: Show the previous project.</description>
|
||||||
Key: l Action: Show the next project.</description>
|
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
@ -62,13 +62,13 @@ position Where in the grid this module&rsquo;s widget will be displayed.</de
|
|||||||
<pubDate>Fri, 08 Jun 2018 13:14:11 -0700</pubDate>
|
<pubDate>Fri, 08 Jun 2018 13:14:11 -0700</pubDate>
|
||||||
|
|
||||||
<guid>https://wtfutil.com/posts/modules/gitlab/</guid>
|
<guid>https://wtfutil.com/posts/modules/gitlab/</guid>
|
||||||
<description>Displays information about your projects hosted on Gitlab:
|
<description>Added in v0.0.8.
|
||||||
|
Displays information about your projects hosted on Gitlab:
|
||||||
Open Approval Requests All open merge requests that are requesting your approval.
|
Open Approval Requests All open merge requests that are requesting your approval.
|
||||||
Open Merge Requests All open merge requests created by you.
|
Open Merge Requests All open merge requests created by you.
|
||||||
Source Code wtf/gitlab/ Required ENV Variables Key: WTF_GITLAB_TOKEN Action: A Gitlab personal access token. Requires at least api access.
|
Source Code wtf/gitlab/ Required ENV Variables Key: WTF_GITLAB_TOKEN Action: A Gitlab personal access token. Requires at least api access.
|
||||||
Keyboard Commands Key: / Action: Open/close the widget&rsquo;s help window.
|
Keyboard Commands Key: / Action: Open/close the widget&rsquo;s help window.
|
||||||
Key: h Action: Show the previous project.
|
Key: h Action: Show the previous project.</description>
|
||||||
Key: l Action: Show the next project.</description>
|
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
@ -117,6 +117,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p>Added in <code>v0.0.8</code>.</p>
|
||||||
|
|
||||||
|
<p><img src="/imgs/modules/gitlab.png" width="640" height="384" alt="gitlab screenshot" /></p>
|
||||||
|
|
||||||
<p>Displays information about your projects hosted on Gitlab:</p>
|
<p>Displays information about your projects hosted on Gitlab:</p>
|
||||||
|
|
||||||
<h4 id="open-approval-requests">Open Approval Requests</h4>
|
<h4 id="open-approval-requests">Open Approval Requests</h4>
|
||||||
@ -127,8 +131,6 @@
|
|||||||
|
|
||||||
<p>All open merge requests created by you.</p>
|
<p>All open merge requests created by you.</p>
|
||||||
|
|
||||||
<p><img src="/imgs/modules/gitlab.png" width="640" height="384" alt="gitlab screenshot" /></p>
|
|
||||||
|
|
||||||
<h2 id="source-code">Source Code</h2>
|
<h2 id="source-code">Source Code</h2>
|
||||||
<div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash">wtf/gitlab/</code></pre></div>
|
<div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash">wtf/gitlab/</code></pre></div>
|
||||||
<h2 id="required-env-variables">Required ENV Variables</h2>
|
<h2 id="required-env-variables">Required ENV Variables</h2>
|
||||||
|
24
wtf.go
24
wtf.go
@ -21,15 +21,11 @@ import (
|
|||||||
"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"
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
"github.com/senorprogrammer/wtf/gitlab"
|
"github.com/senorprogrammer/wtf/gitlab"
|
||||||
>>>>>>> dlom-gitlab
|
|
||||||
"github.com/senorprogrammer/wtf/gspreadsheets"
|
"github.com/senorprogrammer/wtf/gspreadsheets"
|
||||||
"github.com/senorprogrammer/wtf/help"
|
"github.com/senorprogrammer/wtf/help"
|
||||||
"github.com/senorprogrammer/wtf/ipapi"
|
"github.com/senorprogrammer/wtf/ipapi"
|
||||||
"github.com/senorprogrammer/wtf/ipinfo"
|
"github.com/senorprogrammer/wtf/ipinfo"
|
||||||
"github.com/senorprogrammer/wtf/ipapi"
|
|
||||||
"github.com/senorprogrammer/wtf/jenkins"
|
"github.com/senorprogrammer/wtf/jenkins"
|
||||||
"github.com/senorprogrammer/wtf/jira"
|
"github.com/senorprogrammer/wtf/jira"
|
||||||
"github.com/senorprogrammer/wtf/newrelic"
|
"github.com/senorprogrammer/wtf/newrelic"
|
||||||
@ -197,21 +193,14 @@ func addWidget(app *tview.Application, pages *tview.Pages, widgetName string) {
|
|||||||
Widgets = append(Widgets, git.NewWidget(app, pages))
|
Widgets = append(Widgets, git.NewWidget(app, pages))
|
||||||
case "github":
|
case "github":
|
||||||
Widgets = append(Widgets, github.NewWidget(app, pages))
|
Widgets = append(Widgets, github.NewWidget(app, pages))
|
||||||
<<<<<<< HEAD
|
|
||||||
case "gspreadsheets":
|
|
||||||
Widgets = append(Widgets, gspreadsheets.NewWidget())
|
|
||||||
=======
|
|
||||||
case "gitlab":
|
case "gitlab":
|
||||||
Widgets = append(Widgets, gitlab.NewWidget(app, pages))
|
Widgets = append(Widgets, gitlab.NewWidget(app, pages))
|
||||||
case "gspreadsheets":
|
case "gspreadsheets":
|
||||||
Widgets = append(Widgets, gspreadsheets.NewWidget())
|
Widgets = append(Widgets, gspreadsheets.NewWidget())
|
||||||
case "ipapi":
|
case "ipapi":
|
||||||
Widgets = append(Widgets, ipapi.NewWidget())
|
Widgets = append(Widgets, ipapi.NewWidget())
|
||||||
>>>>>>> dlom-gitlab
|
|
||||||
case "ipinfo":
|
case "ipinfo":
|
||||||
Widgets = append(Widgets, ipinfo.NewWidget())
|
Widgets = append(Widgets, ipinfo.NewWidget())
|
||||||
case "ipapi":
|
|
||||||
Widgets = append(Widgets, ipapi.NewWidget())
|
|
||||||
case "jenkins":
|
case "jenkins":
|
||||||
Widgets = append(Widgets, jenkins.NewWidget())
|
Widgets = append(Widgets, jenkins.NewWidget())
|
||||||
case "jira":
|
case "jira":
|
||||||
@ -254,16 +243,11 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
|||||||
gcal.Config = Config
|
gcal.Config = Config
|
||||||
git.Config = Config
|
git.Config = Config
|
||||||
github.Config = Config
|
github.Config = Config
|
||||||
<<<<<<< HEAD
|
|
||||||
gspreadsheets.Config = Config
|
|
||||||
=======
|
|
||||||
gitlab.Config = Config
|
gitlab.Config = Config
|
||||||
gspreadsheets.Config = Config
|
gspreadsheets.Config = Config
|
||||||
ipapi.Config = Config
|
ipapi.Config = Config
|
||||||
>>>>>>> dlom-gitlab
|
|
||||||
ipinfo.Config = Config
|
ipinfo.Config = Config
|
||||||
ipapi.Config = Config
|
jenkins.Config = Config
|
||||||
jenkins.Config = Config
|
|
||||||
jira.Config = Config
|
jira.Config = Config
|
||||||
newrelic.Config = Config
|
newrelic.Config = Config
|
||||||
opsgenie.Config = Config
|
opsgenie.Config = Config
|
||||||
@ -279,7 +263,7 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
|||||||
|
|
||||||
mods, _ := Config.Map("wtf.mods")
|
mods, _ := Config.Map("wtf.mods")
|
||||||
for mod := range mods {
|
for mod := range mods {
|
||||||
if enabled, _ := Config.Bool("wtf.mods." + mod + ".enabled"); enabled {
|
if enabled := Config.UBool("wtf.mods."+mod+".enabled", false); enabled {
|
||||||
addWidget(app, pages, mod)
|
addWidget(app, pages, mod)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user