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

2492 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
04ff03ab1c
Testing (#794)
* Testing

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

* Well, that was enlightening

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-16 20:55:42 -08:00
Chris Cummer
35a8b0e1b5 Things work better when you spell them correctly
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-16 20:38:57 -08:00
Chris Cummer
21255cc875
Actions experiment (#793)
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-16 20:37:03 -08:00
Chris Cummer
e9f2500637 Merge branch 'master' of github.com:wtfutil/wtf 2019-12-16 20:26:01 -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
Chris Cummer
af64882306 Upgrade godo to latest
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-16 20:20:30 -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
37efebf122
Removed the Scarf installation instructions
My username is no longer accepted on the site, I cannot update build releases anymore.
2019-12-15 04:12:09 -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
53e795384b Additional improvements to the Makefile
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-14 08:58:31 -08:00
Chris Cummer
3d4059de02 go mod vendor update
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-14 08:52:34 -08:00
Chris Cummer
703619bf0a
WTF-748 Fixes and improves module templating (#786)
Fixes and improves the module templating for creating new bare-bones
text widgets.

This command:

    WTF_WIDGET_NAME=MyNewWidget go generate -run=text

now properly generates:

    * the module directory in the /modules directory
    * the widget.go file
    * the settings.go file

with no linter warnings or errors.

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-14 08:46:02 -08:00
Chris Cummer
1686c9a6a9 Add small_config.yml for testing
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-13 22:33:28 -08:00
Chris Cummer
ed1e6b2508
WTF-784 Fix CmdRunner title spacing issue (#785)
Closes #784.

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-13 21:26:53 -08:00
Chris Cummer
746ead5747 Improve the Makefile
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-13 16:23:41 -08:00
Chris Cummer
5a6424839d Improve the Makefile
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-13 16:10:13 -08:00
Chris Cummer
b8c87c7dd8 Add @liyiheng as a contributor 2019-12-13 16:00:35 -08:00
Chris Cummer
21d0c8491f
Update README.md 2019-12-13 15:10:08 -08:00
Chris Cummer
1a0b0e6886
Update CHANGELOG.md 2019-12-13 14:51:45 -08:00
Chris Cummer
a8034fb33e
Update CHANGELOG.md 2019-12-13 14:50:54 -08:00
Chris Cummer
5291a31afd
Update CHANGELOG.md v0.25.0 2019-12-13 14:22:04 -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
e1f1d0a410
WTF-781 Clean up Todoist project ID handling a bit (#783)
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-13 08:51:12 -08:00
Chris Cummer
ac18990a8c Add @Gibstick as a contributor 2019-12-13 08:49:43 -08:00
Chris Cummer
f3ac07cd73
Update CHANGELOG.md 2019-12-13 08:49:07 -08:00
Charlie Wang
f1ed15a8e4 Prevent flickering in cmdRunner widgets (#778)
* Prevent flickering in cmdRunner widgets

This commit removes flickering in the cmdRunner widgets while preserving
the live-update functionality. It amends 45b955 by not redrawing on
every write call. Instead, the logic in Refresh is as follows:

1. If the command is already running, it will not try to re-run the
command. The default case in the select will trigger a re-draw instead
so that new output can be seen. This accommodates long-runing commands
eg. tailing a log.
2. If the command is not already running, it will trigger a new run.
When the command terminates, it will trigger a re-draw. This means the
widget refreshes as soon as possible, to accommodate the original use
case of running a command and displaying its output in the widget.

In all cases, the widget will not re-draw more often than the refresh
interval. This is what eliminates flickering, since the previous
implementation before using goroutines was not redrawing more than once
per refresh interval.

* Remove useless locking in Refresh

Since the Refresh command doesn't actually block on anything, and the
goroutines have their own locking, Refresh shouldn't lock.
2019-12-13 08:47:09 -08:00
Chris Cummer
5f23a0c11f
Update CHANGELOG.md 2019-12-13 08:37:33 -08:00
Nikolay Mateev
ff2f07812d Enable Jenkins module to work with Multi-configuration projects (#779)
Awesome, thanks!
2019-12-13 08:36:11 -08:00
Chris Cummer
05b20ba4b7 Merge branch 'master' of github.com:wtfutil/wtf 2019-12-13 08:32:55 -08:00
Chris Cummer
64f055d708 Add @NickyMateev as a contributor 2019-12-13 08:32:16 -08:00
Chris Cummer
1981dbf383
Update CHANGELOG.md 2019-12-13 08:31:54 -08:00
Nikolay Mateev
4ec9d33a6f Add shortcuts for GitHub Pull Requests and Issues (#777) 2019-12-13 08:27:35 -08:00
Chris Cummer
9f6a72d674 Tidy go.mod
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-12 16:59:20 -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
Chris Cummer
9bea20442f Fix styling issue with IPInfo module
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-12 11:29:53 -08:00
Chris Cummer
98de21374a go mod tidy
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-05 06:26:53 -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
Chris Cummer
8b9b326a59
Update CHANGELOG.md 2019-12-05 06:26:01 -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
3d513e9c00 Alias 'make isntall' to 'make install' because I have incompetent fingers
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-01 20:51:01 -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
Chris Cummer
d9464c4a22
Use errwrap to improve fmt.Errorf() handling (#771)
Errwrap: https://github.com/fatih/errwrap

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-01 20:46:52 -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
Chris Cummer
325551c227
Update CHANGELOG.md 2019-11-27 06:39:20 -08:00
Chris Cummer
07bcb79a22 Add @jottr as a contributor 2019-11-27 06:38:00 -08:00
Chris Cummer
251e34af22 Explicit default false for CmdRunner.tail setting
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-11-27 06:35:39 -08:00
Chris Cummer
31ae08d4ca
Update CHANGELOG.md 2019-11-27 05:49:28 -08:00
Chris Cummer
06ffc6cd3d go mod tidy
Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-11-27 05:46:35 -08:00