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

51 Commits

Author SHA1 Message Date
Jason Schweier
9a2bd261c0 Test Validate func 2020-10-08 20:29:50 -04:00
Jason Schweier
4205327b95 Test NewModuleValidator func 2020-10-08 20:29:50 -04:00
Sean Smith
3c63eee8d3
Create generalized todo module (#982)
* Create generalized todo module

Makes existing modules "backends"
This gives us a consistent interface

* Fix check issues

* Fix lint errors

* Make changes to stay on wtfutil todoist fork
2020-10-07 14:58:24 -07:00
Chris Cummer
d672f57c14 Fix warning with type conversion from rune + int to string
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-09-25 06:47:28 -07:00
Sam Roberts
4bb725db9e golangci-lint configuration file
golangci-lint can run all the currently enabled linters, and as far as I
can tell, does it in under 5 seconds as opposed to over 180 seconds
(compare `time make cilint` and `time make lint`).

Some of the linters that are listed in the "enabled" section but
commented out looked like a good idea to me, and fairly low hanging
fruit to fix, but they are not passing at the moment.

All the linters covered in the current Makefile are run.

TODO:
- replace lint target in Makefile with golangci-lint
- remove .github/workflow/errcheck.yml
2020-05-16 12:34:57 -07:00
Chris Cummer
f0ca3b8a58
Another actions test (#889)
* Another actions test

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

* Add BuildTest action

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

* Remove lint check for the time being (so many issues)

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

* Fix issues found by errcheck

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

* Fix errors found by staticcheck

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

* Fix issues found by goimports

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

* Comment out the  action for the time being

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

* Fix shadowed variables

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

* go mod tidy

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

* Remove buildtest.yml

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

* go mod tidy

Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-05-09 12:51:08 -07:00
Jon Hadfield
72ae0ccd8b
add pihole module. 2020-04-19 21:29:45 +01:00
Chris Cummer
629661df05 Fix merge conflict in go.sum
Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-02-15 13:53:59 -08:00
Elliot
6c1828234a
Initial commit of gitlab todo module (#830) 2020-02-15 12:33:23 -08:00
Yvonnick Esnault
25bcd15793 feat: cds modules
Signed-off-by: Yvonnick Esnault <yvonnick@esnau.lt>
2020-02-05 23:18:12 +01:00
Bjoern Weidlich
ce0151becc
Added SpaceX Module 2020-01-06 23:21:44 -08:00
Bjoern Weidlich
86b32b3f9f Adding twitch module to display top streams (#805) 2019-12-30 22:20:53 -05: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
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
Chris Cummer
435bc59a01 Merge branch 'exchangerates' of github.com:schoentoon/wtf into schoentoon-exchangerates 2019-11-15 20:56:44 -08:00
Toon Schoenmakers
244a86cb7e Implemented a module that shows exchange rates from exchangeratesapi.io 2019-11-12 18:06:45 +01:00
Omar
29d3a16491
add pocket widget 2019-11-10 13:59:20 +01: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
ada434b3c3
Merge pull request #715 from Ameobea/twitterstats
Twitterstats
2019-10-29 17:55:57 -07:00
Cizer Pereira
e7e1463181 feat: Add new widget for football scores and standings 2019-10-24 15:28:01 +02:00
Casey Primozic
4c9990bafd
Implement initial twitterstats module
* Create module skeleton based off of the existing twitter module
  * Strip out unused pieces and try to make it as minimal as possible
 * Implement settings parsing, converting the untyped `screenNames` slice into an slice of strings
 * Implement initial minimal display, showing a table with all usernames and their follower count + # of tweets (using dummy metrics for now)
2019-10-22 11:58:20 -07:00
Sean Smith
68e56eaa10 Add new urlutil option, and have these be reloadable
Handles #897 and part of #593
2019-10-12 17:44:28 -04:00
Chris Cummer
0306ecd746 Merge branch 'add-buildkite-widget' of github.com:jmks/wtf into jmks-add-buildkite-widget 2019-10-05 20:41:53 -07:00
Jason Schweier
f56cc483b4 Add Buildkite widget 2019-10-03 10:44:48 -04:00
Lawrence Craft
b0d6790abe Adding subreddit module 2019-09-26 22:58:43 +01:00
Chris Cummer
e13e82a2b4 Merge branch 'add-devto-modules' of github.com:VictorAvelar/wtf into VictorAvelar-add-devto-modules 2019-09-22 17:44:07 -07:00
Chris Cummer
bb10669b09 Add env var defaults to AzureDevops module 2019-09-21 04:13:13 -07:00
Chris Cummer
1bfd26a55c Merge branch 'feature/azure-dev-ops-module' of github.com:v-braun/wtf into v-braun-feature/azure-dev-ops-module 2019-09-21 03:47:30 -07:00
vavelar
425a08522e Implementation of WTF devto module 2019-09-20 17:31:11 +02:00
Viktor Braun (v_b)
64985c3beb implemented azure devops widget 2019-09-19 10:11:59 +02:00
Sean Smith
9f81207037 Clean up cfg error handling a bit
Pass in the actual file being used, rather than hardcoded `config.yaml`
Differences between two error messages are not that distinct
Centralize on one and clean up all the `isCustomConfig` tracking
2019-09-12 20:28:24 -04:00
Chris Cummer
79bc78a5f7 Don't die if the watcher can't find the file. Continue trying 2019-09-10 21:48:33 -07:00
Narendra L
7756df16bb
Merge branch 'master' into add_digitalclock_module 2019-09-09 10:11:51 +02:00
Narendra L
6de3f0f5b9 modules/digitalclock/ 2019-09-08 23:58:25 +02:00
Chris Cummer
7dd4e4909b Merge branch 'feat/nr-multi' of github.com:Seanstoppable/wtf into Seanstoppable-feat/nr-multi 2019-09-08 05:11:05 -07:00
Chris Cummer
e441e7ebf1 Fix go.mod merge conflicts 2019-09-07 07:01:56 -07:00
Chris D Brown
3758ade094 feat(newrelic): Display deploy information from multiple apps 2019-09-04 22:52:01 -04:00
Chris Cummer
85fc8f28a1 Include in extended tcell terminal descriptions 2019-09-04 05:37:54 -07:00
Viktor Braun (v_b)
8bd0bf722c implemented docker module 2019-09-03 17:33:51 +02:00
Jeff Zaroyko
4bc92bcce8 add arpansagovau module for displaying UV data from Australian cities 2019-08-30 11:33:34 +10:00
Sean Smith
146cbb598a Attempt to offer linux transparency
Add 'transparent' as a color option
Default to 'transparent'
Make sure to set color to appropriate things, so transparency is achieved
2019-08-20 22:28:14 -04:00
Andrew Suderman
da0e1dbd5b
Adding a Kubernetes module for displaying Kubernetes cluster resources and info
Signed-off-by: Andrew Suderman <andrew@sudermanjr.com>
2019-08-05 21:43:52 -06:00
Chris Cummer
4e46fff145 Move the utils.go file into the /utils directory 2019-08-05 10:50:12 -07:00
Chris Cummer
2ba50f2a73 Move WidgetMaker functionality into /app 2019-08-04 21:20:53 -07:00
Sean Smith
10772c2190 Fix keyboard fallthrough
We are expecting Esc and Tab to perform other actions, so these need to not return nil
Addresses #520
2019-08-03 22:24:22 -04:00
Chris Cummer
82c89668a0 Move the ModuleValidator from /wtf to /app 2019-07-29 06:15:51 -07:00
Chris Cummer
b790b27000 Move the FocusTracker from /wtf to /app 2019-07-29 06:15:51 -07:00
Chris Cummer
8436b74ac1 Make all exported fields unexported in WtfApp 2019-07-29 06:15:51 -07:00
Chris Cummer
73391b06e4 Add ability to explicitly stop modules via a QuitChan 2019-07-29 06:15:51 -07:00
Chris Cummer
cfd3c731ba Move the scheduler up into /app 2019-07-29 06:15:51 -07:00