Commit Graph

24 Commits

Author SHA1 Message Date
Elia el Lazkani 4ef54af009 Migrating to the new kingpin Envar() interface 2020-05-06 19:46:10 +02:00
Elia el Lazkani 24f8a92ab4 Version bump to 0.1.3 2020-03-06 20:53:45 +01:00
Elia el Lazkani 7eae3e5464 [BUGFIX] Windows terminals that don't set TERM now properly set
--no-colors by default
2020-03-06 20:52:48 +01:00
Elia el Lazkani ba165eb68c [BUGFIX] Transparency of 0 as default is stupid, let's fix it. 2020-03-06 20:15:46 +01:00
Elia el Lazkani 7c5bf90ced Version bump to 0.1.2 2020-03-01 11:09:36 +01:00
Elia el Lazkani 34fd79b312 [BUGFIX] Removing extra quotation added on --format
* Turns out the quotation is a part of "?format=" so it got removed
* Added a nice bonus of replacing spaces in --format with their proper
URL value
2020-03-01 11:07:18 +01:00
Elia el Lazkani 52f25ed46d Version bump to 0.1.1 2020-03-01 02:14:14 +01:00
Elia el Lazkani bd2dd75169 [BUGFIX] Transparency is now properly set
* Bugfix brought about by writing the unittest
* Headers are now set, to allow user override values (unittest)
* Changes to code to allow unittest
2020-03-01 02:11:58 +01:00
Elia el Lazkani 8c1fb7f177 Version bump to 0.1.0 2020-02-29 12:52:38 +01:00
Elia el Lazkani 49b983b5fb [BUGFIX] Sometimes not listening to the linter is the best idea you do 2020-02-29 12:50:37 +01:00
Elia el Lazkani 939ec82312 Documentation update 2020-02-29 12:37:17 +01:00
Elia el Lazkani 826d262d42 [Breaking Change] Another overhaul of the code
This was made possible by the previous overhaul and cleanup

* Code now uses strings.Builder instead of slices
* Fixed --add-frame flag to only work for PNG
* Moved --format to only work as ?format=
* Added --free-style to replace previous --format functionality
* Added explicit --download flag to download instead of print
* Added explicit --file-name flag to specify a file name to use
* Renamed --extra-information to --export-mode
* Updated the --export-mode with more useful information
2020-02-29 12:17:14 +01:00
Elia el Lazkani d43443f885 Massive rehauling of the code.
* Moved the code away from all the if statements and switches
* Built a better foundation to build upon for future expension
* BUGFIX: Now if windows users want to download a PNG it can be in color
2020-02-29 10:34:00 +01:00
Elia el Lazkani 8d086fe7d4 Bumping version to 0.0.5 2020-02-27 00:17:49 +01:00
Elia el Lazkani cea7b560d0 Welcome the --one-liner flag, terminal multiplexer lovers
* Adding a new --one-liner flag that will return the weather on one line
* Updating README with usage and tmux configuration example
2020-02-27 00:15:41 +01:00
Elia el Lazkani 93a0465234 Version bump to 0.0.4 2020-02-26 20:11:37 +01:00
Elia el Lazkani d256e127cf Feature enhancement: Adding -f/--format
* Adding the --format flag to leave it to the users to format their
* Adding an --extra-information flag to print out some advanced
* Variable name change to make it more accurate, it's an affix
2020-02-26 20:07:27 +01:00
Elia el Lazkani 202fc60d38 Making use of environment variables and a better README 2020-02-26 19:18:19 +01:00
Elia el Lazkani 0d97bc8dcb Making the linter happy 2020-02-26 01:05:18 +01:00
Elia el Lazkani 724ffee8e4 Goodbye pflag... Welcome kingpin...
Rehauled the command-line interface with kingpin.v2
2020-02-26 01:01:35 +01:00
Elia el Lazkani 49cd6008b4 Code documentation 2020-02-25 22:51:56 +01:00
Elia el Lazkani ae431b71b5 A few code improvements, turns out I didn't need an interface after all.
* Created a proper struct for the weather
* Created methods to the weather struct to handle weather requests
2020-02-25 22:45:50 +01:00
Elia el Lazkani f184474e60
Making our windows friends happy.
Now color is disabled if TERM is not set.
2020-02-19 23:36:38 +01:00
Elia el Lazkani 3e560032e4 Adding the initial code 2020-02-16 22:09:47 +01:00