diff --git a/Gopkg.lock b/Gopkg.lock index eb2427ac5..9211154d7 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -4,14 +4,20 @@ [[projects]] name = "cloud.google.com/go" packages = ["compute/metadata"] - revision = "0fd7230b2a7505833d5f69b75cbd6c9582401479" - version = "v0.23.0" + revision = "777200caa7fb8936aed0f12b1fd79af64cc83ec9" + version = "v0.24.0" [[projects]] branch = "master" name = "github.com/adlio/trello" packages = ["."] - revision = "05dcd358e32866f2353c4f49077346a0eb585436" + revision = "8a458717123e328d9103a3bf075e64bc1ec961f8" + +[[projects]] + branch = "master" + name = "github.com/andygrunwald/go-gerrit" + packages = ["."] + revision = "5ea603106b4869cc3f38322ee17d5fc1360ee1e3" [[projects]] branch = "master" @@ -50,7 +56,7 @@ branch = "master" name = "github.com/google/go-github" packages = ["github"] - revision = "a83ae98ad5d09188c49d6056edb60ec9bdf202bd" + revision = "60d040d2dafa18fa3e86cbf22fbc3208ef9ef1e0" [[projects]] branch = "master" @@ -80,7 +86,7 @@ branch = "master" name = "github.com/olebedev/config" packages = ["."] - revision = "9a10d05a33a8b9e828f20491e21e8927dec35f72" + revision = "ed90d2035b8114c30b9cb65e7d52e10a7148f8c6" [[projects]] name = "github.com/pkg/errors" @@ -104,7 +110,7 @@ branch = "master" name = "github.com/rivo/tview" packages = ["."] - revision = "e643d10b365df4caec5ed32e4c1103e185af9079" + revision = "83483397e826c343edb7b8c1f33fb7983dda9fc5" [[projects]] name = "github.com/stretchr/testify" @@ -116,13 +122,13 @@ branch = "master" name = "github.com/xanzy/go-gitlab" packages = ["."] - revision = "1c1cfedc5a8ffe122b1981e8b0822fe22f461643" + revision = "6ada444068f460636db26ca0dd66cf2aa518fa8f" [[projects]] branch = "master" name = "github.com/yfronto/newrelic" packages = ["."] - revision = "f7fa0c6f30ac3d86360c73726cfe9dd526a63d21" + revision = "7c9c2852e8f9e69a80bff4f4f1fe4cdd15eeba19" [[projects]] branch = "master" @@ -131,7 +137,7 @@ "context", "context/ctxhttp" ] - revision = "db08ff08e8622530d9ed3a0e8ac279f6d4c02196" + revision = "e514e69ffb8bc3c76a71ae40de0118d794855992" [[projects]] branch = "master" @@ -143,7 +149,7 @@ "jws", "jwt" ] - revision = "113ce6928c4638e14fd5eba69b9e6ec899d5dd83" + revision = "ef147856a6ddbb60760db74283d2424e98c87bff" [[projects]] name = "golang.org/x/text" @@ -167,7 +173,7 @@ "googleapi/internal/uritemplates", "sheets/v4" ] - revision = "2eea9ba0a3d94f6ab46508083e299a00bbbc65f6" + revision = "082d671a2a341aa205b22b580fa69747dcc3cdc8" [[projects]] name = "google.golang.org/appengine" @@ -195,6 +201,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "147a44acfec399fa7d09cafbc213c1c2c222fd6140bc87b35e942d85891995d9" + inputs-digest = "a7a00554f9040d7617458773eafa64b82f9502eace145152cb50eb082800e936" solver-name = "gps-cdcl" solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index 66ae74eab..6221a4d76 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -45,6 +45,10 @@ name = "github.com/xanzy/go-gitlab" branch = "master" +[[constraint]] + name = "github.com/andygrunwald/go-gerrit" + branch = "master" + [[constraint]] name = "github.com/jessevdk/go-flags" version = "1.4.0" diff --git a/README.md b/README.md index cf71889fe..8fbdf9a64 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ Many thanks to all these developers. * [calendar](https://google.golang.org/api/calendar/v3) * [config](https://github.com/olebedev/config) +* [go-gerrit](https://github.com/andygrunwald/go-gerrit) * [go-github](https://github.com/google/go-github) * [goreleaser](https://github.com/goreleaser/goreleaser) * [newrelic](https://github.com/yfronto/newrelic) diff --git a/_site/content/posts/modules/gerrit.md b/_site/content/posts/modules/gerrit.md new file mode 100644 index 000000000..8c7e752c8 --- /dev/null +++ b/_site/content/posts/modules/gerrit.md @@ -0,0 +1,90 @@ +--- +title: "Gerrit" +date: 2018-06-27T15:55:42-07:00 +draft: false +--- + +gerrit screenshot + +Displays information about your projects hosted on Gerrit: + +#### Open Incoming Reviews + +All open reviews that are requesting your approval. + +#### My Outgoing Reviews + +All open reviews created by you. + +## Source Code + +```bash +wtf/gerrit/ +``` + +## Required ENV Variables + +Key: `WTF_GERRIT_PASSWORD`
+Action: Your Gerrit HTTP Password. + +## Keyboard Commands + +Key: `/`
+Action: Open/close the widget's help window. + +Key: `h`
+Action: Show the previous project. + +Key: `l`
+Action: Show the next project. + +Key: `←`
+Action: Show the previous project. + +Key: `→`
+Action: Show the next project. + +## Configuration + +```yaml +gerrit: + enabled: true + position: + top: 2 + left: 3 + height: 2 + width: 2 + refreshInterval: 300 + projects: + - org/test-project" + - dotfiles + username: "myname" +``` + +### Attributes + +`enabled`
+Determines whether or not this module is executed and if its data displayed onscreen.
+Values: `true`, `false`. + +`position`
+Defines where in the grid this module's widget will be displayed.
+ +`refreshInterval`
+How often, in seconds, this module will update its data.
+Values: A positive integer, `0..n`. + +`domain`
+_Optional_. Your Gerrit corporate domain.
+Values: A valid URI. + +`projects`
+A list of Gerrit project names to fetch data for.
+ +`username`
+Your Gerrit username.
+ +`verifyServerCertificate`
+_Optional_
+Determines whether or not the server's certificate chain and host name are verified.
+Values: `true`, `false`. diff --git a/_site/static/imgs/modules/gerrit.png b/_site/static/imgs/modules/gerrit.png new file mode 100644 index 000000000..6084dc1d2 Binary files /dev/null and b/_site/static/imgs/modules/gerrit.png differ diff --git a/_site/themes/hyde-hyde/layouts/partials/sidebar.html b/_site/themes/hyde-hyde/layouts/partials/sidebar.html index e51d9f1b7..3bb31b751 100644 --- a/_site/themes/hyde-hyde/layouts/partials/sidebar.html +++ b/_site/themes/hyde-hyde/layouts/partials/sidebar.html @@ -29,6 +29,7 @@

Content

+ diff --git a/docs/404.html b/docs/404.html index c4dc9e52a..2e9ef6b79 100644 --- a/docs/404.html +++ b/docs/404.html @@ -82,6 +82,7 @@

Content

+ diff --git a/docs/categories/index.html b/docs/categories/index.html index f6ce7abd8..1893a8def 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -84,6 +84,7 @@

Content

+ diff --git a/docs/imgs/modules/gerrit.png b/docs/imgs/modules/gerrit.png new file mode 100644 index 000000000..6084dc1d2 Binary files /dev/null and b/docs/imgs/modules/gerrit.png differ diff --git a/docs/index.html b/docs/index.html index 95a694767..5808c8f22 100644 --- a/docs/index.html +++ b/docs/index.html @@ -83,6 +83,7 @@

Content

+ diff --git a/docs/index.xml b/docs/index.xml index 5cc6df8c0..f9314eb0a 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -6,11 +6,27 @@ Recent content on WTF - A Terminal Dashboard Hugo -- gohugo.io en-us - Sat, 16 Jun 2018 14:22:18 -0700 + Wed, 27 Jun 2018 15:55:42 -0700 + + Gerrit + https://wtfutil.com/posts/modules/gerrit/ + Wed, 27 Jun 2018 15:55:42 -0700 + + https://wtfutil.com/posts/modules/gerrit/ + Displays information about your projects hosted on Gerrit: +Open Incoming Reviews All open reviews that are requesting your approval. +My Outgoing Reviews All open reviews created by you. +Source Code wtf/gerrit/ Required ENV Variables Key: WTF_GERRIT_PASSWORD Action: Your Gerrit HTTP Password. +Keyboard Commands Key: / Action: Open/close the widget’s help window. +Key: h Action: Show the previous project. +Key: l Action: Show the next project. +Key: ← Action: Show the previous project. + + Logger https://wtfutil.com/posts/modules/logger/ @@ -144,7 +160,7 @@ summary enabled Determines whether or not this module is executed and if its dat Compare crypto currencies using CryptoCompare. Source Code wtf/cryptoexchanges/cryptolive/ Required ENV Vars None. Keyboard Commands None. -Configuration cryptolive:colors:from:name:coraldisplayName:greyto:name:whiteprice:greencurrencies:BTC:displayName:Bitcointo:-USD-EUR-ETHETH:displayName:Ethereumto:-USD-EUR-ETHenabled:trueposition:top:5left:2height:1width:2updateInterval:15 Attributes colors.from.name Values: Any X11 color name. +Configuration cryptolive:enabled:trueposition:top:5left:2height:1width:2updateInterval:15currencies:BTC:displayName:Bitcointo:-USD-EUR-ETH-LTC-DOGELTC:displayName:Ethereumto:-USD-EUR-BTCtop:BTC:displayName:Bitcoinlimit:5to:-USDcolors:from:name:coraldisplayName:greyto:name:whiteprice:greentop:from:name:greydisplayName:coralto:name:redfield:whitevalue:green Attributes colors.from.name Values: Any X11 color name. colors.from.dispayName Values: Any X11 color name. colors.to.name Values: Any X11 color name. colors.to.price Values: Any X11 color name. diff --git a/docs/posts/configuration/attributes/index.html b/docs/posts/configuration/attributes/index.html index 4693df6e9..8ad203523 100644 --- a/docs/posts/configuration/attributes/index.html +++ b/docs/posts/configuration/attributes/index.html @@ -82,6 +82,7 @@

Content

+ diff --git a/docs/posts/configuration/index.html b/docs/posts/configuration/index.html index 03874b431..3fb8a0a22 100644 --- a/docs/posts/configuration/index.html +++ b/docs/posts/configuration/index.html @@ -82,6 +82,7 @@

Content

+ diff --git a/docs/posts/configuration/iterm2/index.html b/docs/posts/configuration/iterm2/index.html index 9c2711fae..428b0980c 100644 --- a/docs/posts/configuration/iterm2/index.html +++ b/docs/posts/configuration/iterm2/index.html @@ -82,6 +82,7 @@

Content

+ diff --git a/docs/posts/glossary/index.html b/docs/posts/glossary/index.html index 3395b0f77..31e18fdfa 100644 --- a/docs/posts/glossary/index.html +++ b/docs/posts/glossary/index.html @@ -82,6 +82,7 @@

Content

+ diff --git a/docs/posts/index.html b/docs/posts/index.html index a24878876..837c5820a 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -84,6 +84,7 @@

Content

+ @@ -119,6 +120,13 @@

Content

Posts