1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

87 Commits

Author SHA1 Message Date
Chris Cummer
cde904ff08
Use errcheck to find unhandled errors (#795)
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-17 08:26:16 -08:00
Chris Cummer
140dd553e0
WTF-781 Todoist project ID conversion (#789)
* WTF-781 Switch Todoist IDs from `int` to `string`

On platforms that convert an `int` to `int32`, like the Raspberry Pi,
an `int` is not large enough to store Todoist project IDs.

Using a `string` ensures this never becomes a problem.

Fixes #781

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-16 20:25:52 -08:00
Chris Cummer
3a388fba23
20191215 code improvements (#790)
* Upgrade godo to latest
* Fix a bunch of issues found by
* Running staticcheck on a codebase for the first time is a sobering experience
* go mod tidy
* More static improvements

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-16 20:25:29 -08:00
dependabot-preview[bot]
e71038ccf2 Bump github.com/digitalocean/godo from 1.22.0 to 1.29.0 (#791)
Bumps [github.com/digitalocean/godo](https://github.com/digitalocean/godo) from 1.22.0 to 1.29.0.
- [Release notes](https://github.com/digitalocean/godo/releases)
- [Changelog](https://github.com/digitalocean/godo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/digitalocean/godo/compare/v1.22.0...v1.29.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 16:41:53 -08:00
Chris Cummer
b7f8ec5ae2
Use WTF's version of spotigopher (#787)
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-14 21:24:18 -08:00
Chris Cummer
58299c2efa
WTF-484 DigitalOcean module (#782)
* WTF-484 DigitalOcean module stubbed out
* WTF-484 Delete droplets via Ctrl-d
* WTF-484 Rebasing off master after a long time away
* WTF-484 Improve DigitalOcean display
* WTF-484 Can shutdown and restart the selected droplet
* WTF-484 Display info about the selected droplet using the ? key
* WTF-484 Display info about the selected droplet using the Return key
* WTF-484 Greatly improve the utils.Truncate function
* WTF-484 Display a droplet's features in the info modal
* WTF-484 Change reboot key from r to b to not conflict with refresh
* WTF-484 Panic if a keyboard control is mapped to the same character more than once
* WTF-484 Colorize droplet status indicator
* WTF-484 Extract view.InfoTable out into a reusable component
2019-12-13 11:33:29 -08:00
dependabot-preview[bot]
c259e80721 Bump github.com/olekukonko/tablewriter from 0.0.3 to 0.0.4 (#776)
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.3 to 0.0.4.
- [Release notes](https://github.com/olekukonko/tablewriter/releases)
- [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.3...v0.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-12 16:58:50 -08:00
dependabot-preview[bot]
d1ed36a547 Bump github.com/xanzy/go-gitlab from 0.22.1 to 0.22.2 (#775)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.22.1 to 0.22.2.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.22.1...v0.22.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-05 06:26:07 -08:00
dependabot-preview[bot]
297978b104 Bump github.com/shirou/gopsutil (#772)
Bumps [github.com/shirou/gopsutil](https://github.com/shirou/gopsutil) from 2.19.10+incompatible to 2.19.11+incompatible.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v2.19.10...v2.19.11)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-05 06:24:37 -08:00
Chris Cummer
31926fd4a7
Integrate vendored NewRelic dependency (#767)
The NewRelic module relies on yfronto/newrelic, which no longer exists.
yfronto deleted that directory quite awhile ago, and since then it has
been vendored.

But vendoring a missing repository creates problems when trying to
update the vendored code.

This PR brings the yfronto/newrelic code into the mainline.

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-01 20:47:02 -08:00
dependabot-preview[bot]
e19409d278 Bump github.com/adlio/trello from 1.4.0 to 1.6.0 (#769)
Bumps [github.com/adlio/trello](https://github.com/adlio/trello) from 1.4.0 to 1.6.0.
- [Release notes](https://github.com/adlio/trello/releases)
- [Commits](https://github.com/adlio/trello/compare/v1.4.0...v1.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-29 05:12:43 -08:00
dependabot-preview[bot]
48882ef759 Bump github.com/alecthomas/chroma from 0.6.8 to 0.7.0 (#762)
Bumps [github.com/alecthomas/chroma](https://github.com/alecthomas/chroma) from 0.6.8 to 0.7.0.
- [Release notes](https://github.com/alecthomas/chroma/releases)
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml)
- [Commits](https://github.com/alecthomas/chroma/compare/v0.6.8...v0.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 05:40:25 -08:00
dependabot-preview[bot]
758296f973 Bump github.com/olekukonko/tablewriter from 0.0.2 to 0.0.3 (#761)
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.2 to 0.0.3.
- [Release notes](https://github.com/olekukonko/tablewriter/releases)
- [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.2...v0.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 05:38:54 -08:00
dependabot-preview[bot]
a51dd30e7a Bump github.com/pkg/profile from 1.3.0 to 1.4.0 (#759)
Bumps [github.com/pkg/profile](https://github.com/pkg/profile) from 1.3.0 to 1.4.0.
- [Release notes](https://github.com/pkg/profile/releases)
- [Commits](https://github.com/pkg/profile/compare/v1.3.0...v1.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 05:37:57 -08:00
dependabot-preview[bot]
4d5722b5e9 Bump gopkg.in/yaml.v2 from 2.2.5 to 2.2.7 (#757)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.5 to 2.2.7.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.5...v2.2.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 05:36:41 -08:00
dependabot-preview[bot]
80698d5d23 Bump google.golang.org/api from 0.13.0 to 0.14.0 (#756)
Bumps [google.golang.org/api](https://github.com/google/google-api-go-client) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/google/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/google/google-api-go-client/compare/v0.13.0...v0.14.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 05:34:54 -08:00
dependabot-preview[bot]
558dfd92c6 Bump github.com/xanzy/go-gitlab from 0.22.0 to 0.22.1 (#755)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.22.0 to 0.22.1.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.22.0...v0.22.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-27 05:33:19 -08:00
dependabot-preview[bot]
fdf6e000cb Bump github.com/zorkian/go-datadog-api (#751)
Bumps [github.com/zorkian/go-datadog-api](https://github.com/zorkian/go-datadog-api) from 2.24.0+incompatible to 2.25.0+incompatible.
- [Release notes](https://github.com/zorkian/go-datadog-api/releases)
- [Commits](https://github.com/zorkian/go-datadog-api/compare/v2.24.0...v2.25.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-15 21:01:51 -08:00
Rui Chen
996de81ecd Remove go 1.12 support (goproxy syntax issue) 2019-11-10 15:24:55 -05:00
dependabot-preview[bot]
e8bc58043f Bump github.com/xanzy/go-gitlab from 0.21.0 to 0.22.0 (#739)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.21.0...v0.22.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-09 11:26:59 -08:00
dependabot-preview[bot]
867576c249 Bump github.com/olekukonko/tablewriter from 0.0.1 to 0.0.2 (#737)
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.1 to 0.0.2.
- [Release notes](https://github.com/olekukonko/tablewriter/releases)
- [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.1...v0.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-09 11:26:41 -08:00
dependabot-preview[bot]
d81891f6cc Bump github.com/shirou/gopsutil (#736)
Bumps [github.com/shirou/gopsutil](https://github.com/shirou/gopsutil) from 2.19.9+incompatible to 2.19.10+incompatible.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v2.19.9...v2.19.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-09 11:26:24 -08:00
dependabot-preview[bot]
777bcd08b6 Bump gopkg.in/yaml.v2 from 2.2.4 to 2.2.5 (#735)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.4 to 2.2.5.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.4...v2.2.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-09 11:25:55 -08:00
Chris Cummer
200dbcc03c
WTF-730 Fix missing color key config error (#738)
* WTF-730 Fix missing color key config error

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Add Subheading color formatting to modules

Users can now set a `subheading` color in their config to change the
color of subheadings in widget display.

Defaults to `red`.

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix oustanding color issues

Clean up missing color config changes not addressed in earlier commits.

Signed-off-by: Chris Cummer <chriscummer@me.com>

* Remove unused dependency

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Base cleanup

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix a few bugs related to color config changes

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix issues with PagerDuty subheading display

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-730 Fix bug with Todo list colour rendering

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-11-09 11:21:45 -08:00
Chris Cummer
1bfca29d17
WTF-657 Add spec coverage for cfg/common_settings.go (#728)
* WTF-657 Add spec coverage for cfg/common_settings.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for cfg/position_validation.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for cfg/validations.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for checklist/checklist.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for checklist/checklist_item.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for utils/conversions.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Get rid of utils.Home() function

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for utils/homedir.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Add spec coverage for utils/text.go

Signed-off-by: Chris Cummer <chriscummer@me.com>

* WTF-657 Clean up utils/utils.go

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-10-30 17:35:00 -07:00
dependabot-preview[bot]
83b98e4a03 Bump google.golang.org/api from 0.11.0 to 0.13.0 (#726)
* Bump google.golang.org/api from 0.11.0 to 0.13.0

Bumps [google.golang.org/api](https://github.com/google/google-api-go-client) from 0.11.0 to 0.13.0.
- [Release notes](https://github.com/google/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/google/google-api-go-client/compare/v0.11.0...v0.13.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Tidy go.sum

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-10-30 06:30:45 -07:00
Cizer Pereira
47941026f2 fix: validation build issues 2019-10-24 18:44:24 +02:00
Cizer Pereira
22b40ff0ec fix: mark favorite with 2019-10-24 18:37:16 +02:00
C123R
6a3a5ea7ec
Merge branch 'master' into master 2019-10-24 15:34:26 +02:00
Cizer Pereira
e7e1463181 feat: Add new widget for football scores and standings 2019-10-24 15:28:01 +02:00
Chris Cummer
a8fae544c4
Merge pull request #722 from wtfutil/dependabot/go_modules/github.com/xanzy/go-gitlab-0.21.0
Bump github.com/xanzy/go-gitlab from 0.20.1 to 0.21.0
2019-10-24 04:11:55 -07:00
dependabot-preview[bot]
3c21afef6d
Bump github.com/xanzy/go-gitlab from 0.20.1 to 0.21.0
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.20.1 to 0.21.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.20.1...v0.21.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-24 06:46:25 +00:00
dependabot-preview[bot]
54c0739674
Bump github.com/alecthomas/chroma from 0.6.7 to 0.6.8
Bumps [github.com/alecthomas/chroma](https://github.com/alecthomas/chroma) from 0.6.7 to 0.6.8.
- [Release notes](https://github.com/alecthomas/chroma/releases)
- [Changelog](https://github.com/alecthomas/chroma/blob/master/.goreleaser.yml)
- [Commits](https://github.com/alecthomas/chroma/compare/v0.6.7...v0.6.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-24 06:45:56 +00:00
Indradhanush Gupta
80539def51 Update go.mod and go.sum
Running `go mod tidy` results in these changes
2019-10-20 17:06:33 +05:30
Ricardo N Feliciano
946e79509d Remake/fix go.mod. 2019-10-16 18:51:58 -04:00
Chris Cummer
1b608759ec Add @stevenwhitehead as a contributor 2019-10-11 05:07:13 -07:00
Chris Cummer
9e1b660e61 An attempt to fix Dependabot's parsing issue
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-10-10 20:41:52 -07:00
Boot-Error
a1526b97e8 Fix Errors in azuredevops and devto modules
azuredevops had a error due to cli being a pointer to interface rather
than interface.

devto module's `widget.articles` and `displayArticles` data type changed
to `devto.ListedArticles`.
2019-10-11 03:30:11 +05:30
dependabot-preview[bot]
c6d929c674
Bump gopkg.in/yaml.v2 from 2.2.3 to 2.2.4
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.3 to 2.2.4.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.3...v2.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-04 07:43:31 +00:00
dependabot-preview[bot]
617a702441
Bump github.com/shirou/gopsutil
Bumps [github.com/shirou/gopsutil](https://github.com/shirou/gopsutil) from 2.18.12+incompatible to 2.19.9+incompatible.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v2.18.12...v2.19.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-02 15:47:56 +00:00
Chris Cummer
596825ec1e
Merge pull request #666 from wtfutil/dependabot/go_modules/gopkg.in/yaml.v2-2.2.3
Bump gopkg.in/yaml.v2 from 2.2.2 to 2.2.3
2019-10-02 05:23:10 -07:00
dependabot-preview[bot]
711908971c
Bump gopkg.in/yaml.v2 from 2.2.2 to 2.2.3
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.2 to 2.2.3.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.2...v2.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-01 12:27:41 +00:00
dependabot-preview[bot]
c08c937efe
Bump github.com/gdamore/tcell from 1.2.0 to 1.3.0
Bumps [github.com/gdamore/tcell](https://github.com/gdamore/tcell) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/gdamore/tcell/releases)
- [Commits](https://github.com/gdamore/tcell/compare/v1.2.0...v1.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-30 08:31:39 +00:00
Chris Cummer
92139d1ba7 Revert the tcell upgrade
Reverts back from 1.3.0 to 1.2.0. The later version seems to have some
rendering issues, particularly after putting a laptop to sleep and
waking it back up again.
2019-09-27 03:47:19 -07:00
dependabot-preview[bot]
8d84f9b7f0
Bump github.com/adlio/trello from 1.0.0 to 1.4.0
Bumps [github.com/adlio/trello](https://github.com/adlio/trello) from 1.0.0 to 1.4.0.
- [Release notes](https://github.com/adlio/trello/releases)
- [Commits](https://github.com/adlio/trello/compare/v1.0.0...v1.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-25 13:03:17 +00:00
Chris Cummer
771026cc7d Merge branch 'dependabot/go_modules/github.com/xanzy/go-gitlab-0.20.1' 2019-09-25 05:50:19 -07:00
Chris Cummer
be6eb016af Merge branch 'dependabot/go_modules/github.com/zorkian/go-datadog-api-2.24.0+incompatible' 2019-09-25 05:46:09 -07:00
dependabot-preview[bot]
7ef9fa0ffe
Bump github.com/xanzy/go-gitlab from 0.18.0 to 0.20.1
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.18.0 to 0.20.1.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.18.0...v0.20.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-25 12:45:01 +00:00
Chris Cummer
71db72d205 Merge branch 'master' into dependabot/go_modules/google.golang.org/api-0.10.0 2019-09-25 05:42:58 -07:00
Chris Cummer
90dd200dc8 Merge branch 'master' into dependabot/go_modules/github.com/alecthomas/chroma-0.6.7 2019-09-25 05:40:13 -07:00