diff --git a/Makefile b/Makefile index dfa59a84..2785dc1d 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ contrib_check: install: go clean +make installd go install -ldflags="-s -w -X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)" which wtf diff --git a/_site/config.toml b/_site/config.toml index 60465521..c99807c1 100644 --- a/_site/config.toml +++ b/_site/config.toml @@ -12,7 +12,6 @@ defaultContentLanguage = "en" defaultContentLanguageInSubdir= false enableMissingTranslationPlaceholders = false - # [Languages] # [Languages.en] # title = "Documentation for WTF" diff --git a/_site/content/_footer.md b/_site/content/_footer.md new file mode 100644 index 00000000..e69de29b diff --git a/_site/content/posts/configuration.md b/_site/content/configuration/_index.md similarity index 99% rename from _site/content/posts/configuration.md rename to _site/content/configuration/_index.md index c2956af8..84405e0e 100644 --- a/_site/content/posts/configuration.md +++ b/_site/content/configuration/_index.md @@ -2,6 +2,7 @@ title: "Configuration" date: 2018-04-15T21:17:16-07:00 draft: false +weight: 5 --- ## Index diff --git a/_site/content/posts/configuration/attributes.md b/_site/content/configuration/attributes.md similarity index 93% rename from _site/content/posts/configuration/attributes.md rename to _site/content/configuration/attributes.md index 1f4a8a96..881b9e96 100644 --- a/_site/content/posts/configuration/attributes.md +++ b/_site/content/configuration/attributes.md @@ -1,7 +1,8 @@ --- -title: "Configuration: Attributes" +title: "Attributes" date: 2018-05-16T21:51:23-07:00 draft: false +weight: 5 --- The following top-level attributes are configurable in `config.yml`. @@ -12,7 +13,7 @@ wtf: colors: background: "red" border: - Focusable: "darkslateblue" + focusable: "darkslateblue" focused: "orange" normal: "gray" grid: @@ -23,9 +24,8 @@ wtf: # How _high_ the rows are, in terminal lines. In this case we have five rows # that support ten line of text, one of three lines, and one of four rows: [10, 10, 10, 10, 10, 3, 4] - # The app redraws itself once a second - openFileUtil: open - refreshInterval: 1 + openFileUtil: open # the name of the utility to call to open files + refreshInterval: 1 # the app refreshes once per second term: "xterm-256color" ``` diff --git a/_site/content/posts/configuration/iterm2.md b/_site/content/configuration/iterm2.md similarity index 96% rename from _site/content/posts/configuration/iterm2.md rename to _site/content/configuration/iterm2.md index d42a99b1..ba981d6d 100644 --- a/_site/content/posts/configuration/iterm2.md +++ b/_site/content/configuration/iterm2.md @@ -1,7 +1,8 @@ --- -title: "Configuration: iTerm2" +title: "iTerm2" date: 2018-05-24T09:57:40-07:00 draft: false +weight: 10 --- Many terminal apps don't properly display multibyte emoji characters diff --git a/_site/content/posts/overview.md b/_site/content/getting_started/_index.md similarity index 98% rename from _site/content/posts/overview.md rename to _site/content/getting_started/_index.md index 126715d7..1366be24 100644 --- a/_site/content/posts/overview.md +++ b/_site/content/getting_started/_index.md @@ -1,7 +1,8 @@ --- -title: "Overview" +title: "Getting Started" date: 2018-05-21T16:11:58-07:00 draft: false +weight: 1 --- WTF is a personal information dashboard for your terminal, developed for those who spend most of their day in the command line. diff --git a/_site/content/posts/glossary.md b/_site/content/getting_started/glossary.md similarity index 100% rename from _site/content/posts/glossary.md rename to _site/content/getting_started/glossary.md diff --git a/_site/content/posts/installation.md b/_site/content/getting_started/installation.md similarity index 77% rename from _site/content/posts/installation.md rename to _site/content/getting_started/installation.md index dcc4aafa..1b78b771 100644 --- a/_site/content/posts/installation.md +++ b/_site/content/getting_started/installation.md @@ -4,20 +4,6 @@ date: 2018-05-18T09:59:40-07:00 draft: false --- -There are two ways to install WTF: - -## From Source - -Get this repo and install the dependencies: - -```bash -go get -u github.com/senorprogrammer/wtf -cd $GOPATH/src/github.com/senorprogrammer/wtf -make install -make run -``` -and that should probably do it. - ## As a Binary Grab the latest version from here: @@ -33,3 +19,16 @@ expand it, and `cd` into the resulting directory. Then run: ``` and that should also do it. + +## From Source + +Download the source code repo and install the dependencies: + +```bash +go get -u github.com/senorprogrammer/wtf +cd $GOPATH/src/github.com/senorprogrammer/wtf +go install -ldflags="-s -w" +make run +``` +and that should do it. + diff --git a/_site/content/posts/modules.md b/_site/content/modules/_index.md similarity index 98% rename from _site/content/posts/modules.md rename to _site/content/modules/_index.md index 6dc676b3..8ca1d61b 100644 --- a/_site/content/posts/modules.md +++ b/_site/content/modules/_index.md @@ -2,6 +2,7 @@ title: "Modules" date: 2018-05-07T18:04:58-07:00 draft: false +weight: 10 --- The heart of WTF is the modules. A module is a discreet unit of diff --git a/_site/content/posts/modules/bamboohr.md b/_site/content/modules/bamboohr.md similarity index 97% rename from _site/content/posts/modules/bamboohr.md rename to _site/content/modules/bamboohr.md index 6d75f242..9734caf5 100644 --- a/_site/content/posts/modules/bamboohr.md +++ b/_site/content/modules/bamboohr.md @@ -2,6 +2,7 @@ title: "BambooHR" date: 2018-05-07T20:17:37-07:00 draft: false +weight: 10 --- Connects to the BambooHR API and displays who will be Away today. @@ -12,10 +13,6 @@ Connects to the BambooHR API and displays who will be Away today. wtf/bamboohr/ ``` -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/circleci.md b/_site/content/modules/circleci.md similarity index 87% rename from _site/content/posts/modules/circleci.md rename to _site/content/modules/circleci.md index 351a54de..6994ec53 100644 --- a/_site/content/posts/modules/circleci.md +++ b/_site/content/modules/circleci.md @@ -2,13 +2,15 @@ title: "CircleCI" date: 2018-06-10T19:26:08-04:00 draft: false +weight: 20 --- +circleci screenshot + Added in `v0.0.7`. Displays build information for your CircleCI account. -circleci screenshot ## Source Code @@ -16,10 +18,6 @@ Displays build information for your CircleCI account. wtf/circleci/ ``` -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/clocks.md b/_site/content/modules/clocks.md similarity index 92% rename from _site/content/posts/modules/clocks.md rename to _site/content/modules/clocks.md index 53864796..7eced25d 100644 --- a/_site/content/posts/modules/clocks.md +++ b/_site/content/modules/clocks.md @@ -2,11 +2,13 @@ title: "Clocks" date: 2018-05-07T19:47:31-07:00 draft: false +weight: 30 --- +clocks screenshot + Displays a configurable list of world clocks, the local time, and date. -clocks screenshot ## Source Code @@ -14,14 +16,6 @@ Displays a configurable list of world clocks, the local time, and date. wtf/clocks/ ``` -## Required ENV Variables - -None. - -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/cmdrunner.md b/_site/content/modules/cmdrunner.md similarity index 93% rename from _site/content/posts/modules/cmdrunner.md rename to _site/content/modules/cmdrunner.md index 856984bf..d198555e 100644 --- a/_site/content/posts/modules/cmdrunner.md +++ b/_site/content/modules/cmdrunner.md @@ -2,6 +2,7 @@ title: "CmdRunner" date: 2018-05-17T17:17:10-07:00 draft: false +weight: 40 --- Runs a terminal command on a schedule. @@ -12,14 +13,6 @@ Runs a terminal command on a schedule. wtf/cmdrunner/ ``` -## Required ENV Variables - -None. - -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/modules/cryptocurrencies/_index.md b/_site/content/modules/cryptocurrencies/_index.md new file mode 100644 index 00000000..add5c26a --- /dev/null +++ b/_site/content/modules/cryptocurrencies/_index.md @@ -0,0 +1,8 @@ +--- +title: "Crypo Currencies" +date: 2018-05-07T18:04:58-07:00 +draft: false +weight: 50 +--- + +For all modules cryptocurrency-related. diff --git a/_site/content/posts/modules/cryptocurrencies/bittrex.md b/_site/content/modules/cryptocurrencies/bittrex.md similarity index 91% rename from _site/content/posts/modules/cryptocurrencies/bittrex.md rename to _site/content/modules/cryptocurrencies/bittrex.md index 8ee4ad37..e8cd9123 100644 --- a/_site/content/posts/modules/cryptocurrencies/bittrex.md +++ b/_site/content/modules/cryptocurrencies/bittrex.md @@ -2,28 +2,21 @@ title: "Bittrex" date: 2018-06-04T20:06:40-07:00 draft: false +weight: 5 --- +bittrex screenshot + Added in `v0.0.5`. Get the last 24 hour summary of cryptocurrencies market using [Bittrex](https://bittrex.com). -bittrex screenshot - ## Source Code ```bash wtf/cryptoexchanges/bittrex/ ``` -## Required ENV Variables - -None. - -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/cryptocurrencies/blockfolio.md b/_site/content/modules/cryptocurrencies/blockfolio.md similarity index 89% rename from _site/content/posts/modules/cryptocurrencies/blockfolio.md rename to _site/content/modules/cryptocurrencies/blockfolio.md index 06df64cc..b04ec30f 100644 --- a/_site/content/posts/modules/cryptocurrencies/blockfolio.md +++ b/_site/content/modules/cryptocurrencies/blockfolio.md @@ -2,13 +2,15 @@ title: "Blockfolio" date: 2018-06-13T09:29:59-07:00 draft: false +weight: 10 --- +blockfolio screenshot + Added in `v0.0.8`. Display your Blockfolio crypto holdings. -blockfolio screenshot ## Source @@ -16,14 +18,6 @@ Display your Blockfolio crypto holdings. wtf/blockfolio/ ``` -## Required ENV Variables - -None. - -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/cryptocurrencies/cryptolive.md b/_site/content/modules/cryptocurrencies/cryptolive.md similarity index 88% rename from _site/content/posts/modules/cryptocurrencies/cryptolive.md rename to _site/content/modules/cryptocurrencies/cryptolive.md index 2fd27310..1eb77e00 100644 --- a/_site/content/posts/modules/cryptocurrencies/cryptolive.md +++ b/_site/content/modules/cryptocurrencies/cryptolive.md @@ -2,13 +2,15 @@ title: "CryptoLive" date: 2018-06-03T20:06:40-07:00 draft: false +weight: 15 --- +cryptolive screenshot + Added in `v0.0.5`. Compare crypto currencies using [CryptoCompare](https://cryptocompare.com). -cryptolive screenshot ## Source Code @@ -16,14 +18,6 @@ Compare crypto currencies using [CryptoCompare](https://cryptocompare.com). wtf/cryptoexchanges/cryptolive/ ``` -## Required ENV Vars - -None. - -## Keyboard Commands - -None. - ## Configuration ```yaml @@ -33,12 +27,12 @@ cryptolive: top: 5 left: 2 height: 1 - width: 2 + width: 2 updateInterval: 15 - currencies: + currencies: BTC: displayName: Bitcoin - to: + to: - USD - EUR - ETH @@ -46,7 +40,7 @@ cryptolive: - DOGE LTC: displayName: Ethereum - to: + to: - USD - EUR - BTC @@ -56,7 +50,7 @@ cryptolive: limit: 5 to: - USD - colors: + colors: from: name: coral displayName: grey diff --git a/_site/content/posts/modules/gcal.md b/_site/content/modules/gcal.md similarity index 96% rename from _site/content/posts/modules/gcal.md rename to _site/content/modules/gcal.md index 6e4ec060..e087a502 100644 --- a/_site/content/posts/modules/gcal.md +++ b/_site/content/modules/gcal.md @@ -2,11 +2,12 @@ title: "Google Calendar" date: 2018-05-10T08:25:33-07:00 draft: false +weight: 60 --- -Displays your upcoming Google calendar events. +gcal screenshot -gcal screenshot +Displays your upcoming Google calendar events. **Not:** Setting up access to Google Calendars for Go is a bit unobvious. Check out Google's [Go Quickstart](https://developers.google.com/calendar/quickstart/go) first and if you have problems, then take a look at this [comment by WesleydeSouza](https://github.com/senorprogrammer/wtf/issues/83#issuecomment-393665229) which offers a slightly different approach. @@ -17,14 +18,6 @@ first and if you have problems, then take a look at this [comment by WesleydeSou wtf/gcal/ ``` -## Required ENV Variables - -None. - -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/gerrit.md b/_site/content/modules/gerrit.md similarity index 96% rename from _site/content/posts/modules/gerrit.md rename to _site/content/modules/gerrit.md index 26d912a5..6d3c83f6 100644 --- a/_site/content/posts/modules/gerrit.md +++ b/_site/content/modules/gerrit.md @@ -2,8 +2,11 @@ title: "Gerrit" date: 2018-06-27T15:55:42-07:00 draft: false +weight: 70 --- +gerrit screenshot + Displays information about your projects hosted on Gerrit: #### Open Incoming Reviews @@ -14,8 +17,6 @@ All open reviews that are requesting your approval. All open reviews created by you. -gerrit screenshot - ## Source Code ```bash diff --git a/_site/content/posts/modules/git.md b/_site/content/modules/git.md similarity index 95% rename from _site/content/posts/modules/git.md rename to _site/content/modules/git.md index b601bfdd..49f86990 100644 --- a/_site/content/posts/modules/git.md +++ b/_site/content/modules/git.md @@ -2,13 +2,14 @@ title: "Git" date: 2018-05-09T14:20:48-07:00 draft: false +weight: 80 --- +git screenshot + Displays information about local git repositories: branch, changed files, and recent commits. -git screenshot - #### Branch The name of the currently-active git branch. @@ -28,10 +29,6 @@ A list of `n` recent commits, who committed it, and when. wtf/git/ ``` -## Required ENV Variables - -None. - ## Keyboard Commands Key: `/`
diff --git a/_site/content/posts/modules/github.md b/_site/content/modules/github.md similarity index 95% rename from _site/content/posts/modules/github.md rename to _site/content/modules/github.md index bc80f930..449ebab8 100644 --- a/_site/content/posts/modules/github.md +++ b/_site/content/modules/github.md @@ -2,10 +2,12 @@ title: "GitHub" date: 2018-05-09T19:20:20-07:00 draft: false +weight: 90 --- -Displays information about your git repositories hosted on GitHub: +github screenshot +Displays information about your git repositories hosted on GitHub: #### Open Review Requests @@ -15,8 +17,6 @@ All open code review requests assigned to you. All open pull requests created by you. -github screenshot - ## Source Code ```bash diff --git a/_site/content/posts/modules/gitlab.md b/_site/content/modules/gitlab.md similarity index 94% rename from _site/content/posts/modules/gitlab.md rename to _site/content/modules/gitlab.md index 671dfe74..64d6fef8 100644 --- a/_site/content/posts/modules/gitlab.md +++ b/_site/content/modules/gitlab.md @@ -2,11 +2,12 @@ title: "GitLab" date: 2018-06-08T13:14:11-07:00 draft: false +weight: 100 --- -Added in `v0.0.8`. +gitlab screenshot -gitlab screenshot +Added in `v0.0.8`. Displays information about your projects hosted on GitLab: diff --git a/_site/content/posts/modules/gspreadsheet.md b/_site/content/modules/gspreadsheet.md similarity index 95% rename from _site/content/posts/modules/gspreadsheet.md rename to _site/content/modules/gspreadsheet.md index aaea2384..2d4425f6 100644 --- a/_site/content/posts/modules/gspreadsheet.md +++ b/_site/content/modules/gspreadsheet.md @@ -2,6 +2,7 @@ title: "Google Spreadsheets" date: 2018-06-10T18:26:26-04:00 draft: false +weight: 110 --- Added in `v0.0.7`. @@ -12,14 +13,6 @@ Display information from cells in a Google Spreadsheet. wtf/gspreadsheets/ ``` -## Required ENV Variables - -None. - -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/modules/ipaddress/_index.md b/_site/content/modules/ipaddress/_index.md new file mode 100644 index 00000000..20034597 --- /dev/null +++ b/_site/content/modules/ipaddress/_index.md @@ -0,0 +1,9 @@ +--- +title: "IP Address" +date: 2018-05-07T18:04:58-07:00 +draft: false +weight: 120 +--- + +For all modules IP address-related. + diff --git a/_site/content/posts/modules/ipapi.md b/_site/content/modules/ipaddress/ipapi.md similarity index 94% rename from _site/content/posts/modules/ipapi.md rename to _site/content/modules/ipaddress/ipapi.md index 986aa172..d1666d85 100644 --- a/_site/content/posts/modules/ipapi.md +++ b/_site/content/modules/ipaddress/ipapi.md @@ -2,6 +2,7 @@ title: "IP-API" date: 2018-06-10T19:41:52-04:00 draft: false +weight: 10 --- Added in `v0.0.7`. @@ -17,14 +18,6 @@ minute. wtf/ipapi/ ``` -## Required ENV Variables - -None. - -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/ipinfo.md b/_site/content/modules/ipaddress/ipinfo.md similarity index 88% rename from _site/content/posts/modules/ipinfo.md rename to _site/content/modules/ipaddress/ipinfo.md index 93b8edb2..1d32b022 100644 --- a/_site/content/posts/modules/ipinfo.md +++ b/_site/content/modules/ipaddress/ipinfo.md @@ -2,13 +2,15 @@ title: "IPInfo" date: 2018-06-01T23:18:48-07:00 draft: false +weight: 20 --- +ipinfo screenshot + Displays your current IP address information, from ipinfo.io. **Note:** IPInfo.io has a free-plan rate limit of 1000 requests per day. -ipinfo screenshot ## Source Code @@ -16,14 +18,6 @@ Displays your current IP address information, from ipinfo.io. wtf/ipinfo/ ``` -## Required ENV Variables - -None. - -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/jenkins.md b/_site/content/modules/jenkins.md similarity index 87% rename from _site/content/posts/modules/jenkins.md rename to _site/content/modules/jenkins.md index d2577979..055fbd58 100644 --- a/_site/content/posts/modules/jenkins.md +++ b/_site/content/modules/jenkins.md @@ -1,26 +1,22 @@ --- -title: "Modules: Jenkins" +title: "Jenkins" date: 2018-06-09T20:53:35-07:00 draft: false +weight: 130 --- +jenkins screenshot + Added in `v0.0.8`. Displays jenkins status of given builds in a project or view -jenkins screenshot - ## Source Code ```bash wtf/jenkins/ ``` -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/jira.md b/_site/content/modules/jira.md similarity index 96% rename from _site/content/posts/modules/jira.md rename to _site/content/modules/jira.md index 71a6f988..864d7bf6 100644 --- a/_site/content/posts/modules/jira.md +++ b/_site/content/modules/jira.md @@ -2,11 +2,12 @@ title: "Jira" date: 2018-05-10T10:44:35-07:00 draft: false +weight: 140 --- -Displays all Jira issues assigned to you for the specified project. +jira screenshot -jira screenshot +Displays all Jira issues assigned to you for the specified project. ## Source Code diff --git a/_site/content/posts/modules/logger.md b/_site/content/modules/logger.md similarity index 88% rename from _site/content/posts/modules/logger.md rename to _site/content/modules/logger.md index 23280a4b..68fecb78 100644 --- a/_site/content/posts/modules/logger.md +++ b/_site/content/modules/logger.md @@ -2,15 +2,16 @@ title: "Logger" date: 2018-06-16T14:22:18-07:00 draft: false +weight: 150 --- -Displays the contents of the WTF log file. +Displays the contents of the WTF log file. The log file is located at `~/.config/wtf/log.txt`. To log to this file in your own modules: ```golang require "github.com/senorprogrammer/wtf/logger" - logger.Log("This is a log entry") +logger.Log("This is a log entry") ``` ## Source Code @@ -19,10 +20,6 @@ require "github.com/senorprogrammer/wtf/logger" wtf/logger/ ``` -## Required ENV Variables - -None. - ## Keyboard Commands Arrow keys scroll through the log file. diff --git a/_site/content/posts/modules/newrelic.md b/_site/content/modules/newrelic.md similarity index 91% rename from _site/content/posts/modules/newrelic.md rename to _site/content/modules/newrelic.md index 9d2881d3..8295178d 100644 --- a/_site/content/posts/modules/newrelic.md +++ b/_site/content/modules/newrelic.md @@ -2,23 +2,20 @@ title: "New Relic" date: 2018-05-09T09:01:14-07:00 draft: false +weight: 160 --- +newrelic screenshot + Connects to the New Relic API and displays the last n deploys of the monitored application: deploy ID, deploy time, and who deployed it. -newrelic screenshot - ## Source Code ```bash wtf/newrelic/ ``` -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/opsgenie.md b/_site/content/modules/opsgenie.md similarity index 89% rename from _site/content/posts/modules/opsgenie.md rename to _site/content/modules/opsgenie.md index ac18411b..d5d166fb 100644 --- a/_site/content/posts/modules/opsgenie.md +++ b/_site/content/modules/opsgenie.md @@ -2,23 +2,20 @@ title: "OpsGenie" date: 2018-05-08T20:53:40-07:00 draft: false +weight: 170 --- +opsgenie screenshot + Connects to the OpsGenie API and displays all your scheduled rotations and who's currently on call. -opsgenie screenshot - ## Source Code ```bash wtf/opsgenie/ ``` -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/power.md b/_site/content/modules/power.md similarity index 84% rename from _site/content/posts/modules/power.md rename to _site/content/modules/power.md index 7ecc728d..25d110b8 100644 --- a/_site/content/posts/modules/power.md +++ b/_site/content/modules/power.md @@ -2,28 +2,21 @@ title: "Power" date: 2018-05-26T19:26:23-07:00 draft: false +weight: 180 --- +power screenshot + Displays information about the current power source. For battery, also displays the current charge, estimated time remaining, and whether it is charging or discharging. -power screenshot - ## Source Code ```bash wtf/power/ ``` -## Required ENV Variables - -None. - -## Keyboard Commands - -None. - ## Configuration ```yaml diff --git a/_site/content/posts/modules/security.md b/_site/content/modules/security.md similarity index 91% rename from _site/content/posts/modules/security.md rename to _site/content/modules/security.md index c9800121..720c1ded 100644 --- a/_site/content/posts/modules/security.md +++ b/_site/content/modules/security.md @@ -2,13 +2,14 @@ title: "Security" date: 2018-05-08T20:33:28-07:00 draft: false +weight: 200 --- +security screenshot + Displays some general information about the state of the machine's wifi connection, firewall, DNS settings, and logged-in users. -security screenshot - #### Wifi Network