sunwait

Commits at fea537abc6c6254dd1d942390eba8aed929d283a

  1. fea537ab Offset CLI argument Shota FUJI authored at Shota FUJI comitted at
  2. bdb74658 Fix incorrect offset usage in man page Shota FUJI authored at Shota FUJI comitted at
  3. 024f9127 Fix prints "unknown argument" for incorrect arguments Errors other than UnknownArg, such as MissingValue logs eariler. UnknownArg is also used as a "skip" signal and there were no other error in an error set, that's why the log was here. I simply forgot to remove that when I added other error values. Shota FUJI authored at Shota FUJI comitted at
  4. 30ddee1c Twilight angle CLI argument Shota FUJI authored at Shota FUJI comitted at
  5. 64f0da64 Event type arguments for list command I initially thought these args affects every command. Turned out, only "list" and "wait" commands use those args. That's why I set those as command options rather than global options. This time, I choose correctness and user-friendliness over backwards-compatibility. Shota FUJI authored at Shota FUJI comitted at
  6. 1927160c Fix incorrect sunrise/sunset calculation on non-UTC timezone Shota FUJI authored at Shota FUJI comitted at
  7. 304fec8b Fix invalid CLI argument does not abort parsing Invalid argument, such as "d foo" should abort and prints usage error. Shota FUJI authored at Shota FUJI comitted at
  8. 5be27e01 Parse date args on "report" command Shota FUJI authored at Shota FUJI comitted at
  9. 8e71843d Call "generate_report" on report command Shota FUJI authored at Shota FUJI comitted at
  10. 88c46686 Support hyphen-less "utc" flag Required for behavior matching tests. Shota FUJI authored at Shota FUJI comitted at
  11. f272abe2 Set correct default value for "targetTimet" Shota FUJI authored at Shota FUJI comitted at
  12. 4a52d259 Run "print_list" on "list" command It does not work correctly because the default value of `target_time` being the same as `now` instead of "start of the day of `now`." Anyway, the command prints something and exits with expected status. That's okay for now. Shota FUJI authored at Shota FUJI comitted at
  13. 66781b3d Fix lat/lon accepts negative number with suffix Values like -1.2345N are illegal and confusing. As I've added "--latitude" and "--longitude" options, there are no need for supporting negative suffixed values. Shota FUJI authored at Shota FUJI comitted at
  14. c5402dc6 Add --latitude and --longitude options This is obvious and less error-prone. I'm gonna keep non-flag variants for compatibility. Shota FUJI authored at Shota FUJI comitted at
  15. 74ebda97 Defer getting now/target time CLI does not take argument for "now". Also "target" defaults to "now". Shota FUJI authored at Shota FUJI comitted at
  16. 7b4e63f6 Print poll result to stdout Shota FUJI authored at Shota FUJI comitted at
  17. f2ec1ae9 Parse latitude and longitude CLI args Shota FUJI authored at Shota FUJI comitted at
  18. a3e7b62b Support command argument Shota FUJI authored at Shota FUJI comitted at
  19. 8249d378 UTC flag Instead of "--utc" being an alias for "--gmt", I swapped those too. Shota FUJI authored at Shota FUJI comitted at
  20. d3848966 Debug flag I did not added "verbose" alias because it's incorrect--the "debug" flag shortens wait time and that's not "verbose" or not. Shortening wait time is not appropriate for "--debug" too, but never it is verbosity. The original version also has "-v" alias in flag handling code, but it won't be handled because "version" flag has "-v" alias and it captures the arg eariler. Shota FUJI authored at Shota FUJI comitted at
  21. dab5ef6c Add help flag to Zig main Shota FUJI authored at Shota FUJI comitted at
  22. 81427ae9 Implement version flag to Zig main Shota FUJI authored at Shota FUJI comitted at
  23. 0f68071e Skip tests for features not implemented yet Errors are so noisy. Shota FUJI authored at Shota FUJI comitted at
  24. c6acef26 Add behavior matching tests to build system This allows me to develop new CLI main in a more TDD-ish way. Shota FUJI authored at Shota FUJI comitted at
  25. 8ffc19d7 Add Zig main The most painful point of this software is it's CLI design. Unstructured flags and surprising behaviors. The biggest reason I forked is to rewrite the CLI frontend. Shota FUJI authored at Shota FUJI comitted at
  26. b4e9177a Remove unused annotation from REUSE.toml The REUSE tool won't complain unexistent file path, though. This is just a cleanup. Shota FUJI authored at Shota FUJI comitted at
  27. 2af7c1d7 Man page for sunwait(1) It is more readable than plain text and more familiar to many people. Shota FUJI authored at Shota FUJI comitted at
  28. ceec2038 Configure Zig build system I hate C toolchains. I mean, cryptic warnings and errors they outputs. My current plan is to gradually replacing C with Zig, starting from "main" function. Shota FUJI authored at Shota FUJI comitted at
  29. 5e88a06b Create copyright and license file for current files File format and directory structure follows REUSE 3.3 specification. <https://reuse.software/spec-3.3/> Copyright texts are from actual source code. README file does not include neither copyright nor license text. I choose GPL-3.0-only rather than GPL-3.0-or-later because: * no file but LICENSE contains "or any later version", which indicates GPL-3.0-or-later * GPL-3.0-only looks safer, as GPL-3.0-or-later technically widens license without copyright holder's permission. I plan to gradually rewrite/replace every file so...I hope I can remove this REUSE.toml file in a future. Shota FUJI authored at Shota FUJI comitted at
  30. dca3da5a Delete Visual Studio config files Why? Shota FUJI authored at Shota FUJI comitted at
  31. 4a43b712 Remove openwrt/ directory I'm not willing to keep build configs for copy and paste "SDK." Shota FUJI authored at Shota FUJI comitted at
  32. 151d8340 Switch to C++ to C. Thanks Michael Stilkerich; I never liked C++ anyway. Dan Risacher authored at Dan Risacher comitted at
  33. 49f9a3f1 random tech-debt and harmonization changes Dan Risacher authored at Dan Risacher comitted at
  34. d282e985 Bump version number to include syntax fix Dan Risacher authored at Dan Risacher comitted at
  35. 691e85f7 fix a weird syntax error. How did this ever work? Dan Risacher authored at Dan Risacher comitted at
  36. d750d22c Merge pull request #29 from linuxkidd/master Fix unused computed valued warning during sunwait.cpp compile. Daniel Risacher authored at GitHub comitted at
  37. 39a8d864 Merge pull request #31 from ckuethe/patch-1 document use of an arbitrary date specification Daniel Risacher authored at GitHub comitted at
  38. e552a206 Merge pull request #28 from allanlaal/patch-1 ADD standard(ish) unixy command line flags Daniel Risacher authored at GitHub comitted at
  39. 102cb417 Merge pull request #7 from kadorken/master Add build procedure/solution for windows and linux in visual studio 2019 Daniel Risacher authored at GitHub comitted at
  40. 5facc0ee Merge pull request #11 from ahorn42/master Fix for make clean error, if the folder was already deleted or not yet created Daniel Risacher authored at GitHub comitted at
  41. 8b33f470 Merge pull request #9 from danieldjewell/fix_report_targetTime Fix error in print.cpp in displaying target time Daniel Risacher authored at GitHub comitted at
  42. 58d7db58 Merge pull request #8 from hardija/master Fixed typo "Diurnal" Daniel Risacher authored at GitHub comitted at
  43. 81cb0da8 Merge pull request #13 from lbdroid/master Add Makefile and instructions for OpenWRT Daniel Risacher authored at GitHub comitted at
  44. 973ac45e Merge pull request #15 from tljohnsn/master Fix build errors on osx Daniel Risacher authored at GitHub comitted at
  45. 7326b53e add USAGE.txt Daniel Risacher authored at Daniel Risacher comitted at
  46. b6fdeff2 Merge branch 'master' of https://github.com/risacher/sunwait Daniel Risacher authored at Daniel Risacher comitted at
  47. ddb63faa Fix daylight savings time bug noticed by Phos Quartz Daniel Risacher authored at Daniel Risacher comitted at
  48. 38ac8a2f Initial import Daniel Risacher authored at Daniel Risacher comitted at
  49. 7eb967d0 Initial commit Daniel Risacher authored at GitHub comitted at
  50. a5761394 Update README.md Updated README Daniel Risacher authored at GitHub comitted at
  51. e2e23429 Abs and default location Trent Johnsn authored at Trent Johnsn comitted at
  52. 5a7180e4 Abs and default location Trent Johnsn authored at Trent Johnsn comitted at
  53. 1a7226c0 Fix build errors on osx tljohnsn authored at tljohnsn comitted at
  54. 75428ae5 Add Makefile and instructions for OpenWRT lbdroid authored at lbdroid comitted at
  55. 2a08a067 Merge branch 'master' of github.com:hardija/sunwait Jeff Harding authored at Jeff Harding comitted at
  56. bdb63a81 Added examples with local lat/long Jeff Harding authored at Jeff Harding comitted at
  57. c24f8aac Fixed typo "Diurnal" Jeff Harding authored at Jeff Harding comitted at
  58. 6f738fd1 Fix error in print.cpp in displaying target time The "nowTm" struct was being used for the target time data in report Daniel Jewell authored at Daniel Jewell comitted at
  59. c10f2538 added -f to rm, to avoid errors if the sunwait folder was already removed or is not existent Andreas Horn authored at Andreas Horn comitted at
  60. 0a3d05e6 Change configuration to build both windows and ARM version Keith Dorken authored at Keith Dorken comitted at
  61. 8c8099c4 Add linux version for crosscompiling to RaspberryPi Keith Dorken authored at Keith Dorken comitted at
  62. d9c44bd3 Add visual studio 2019 solution/project to build for windows. Keith Dorken authored at Keith Dorken comitted at
  63. 22b741a6 ADD standard(ish) unixy command line flags --version --verbose --help ..and their shortened versions Allan Laal authored at GitHub comitted at
  64. 86bea75e document use of an arbitrary date specification Chris Kuethe authored at GitHub comitted at
  65. 3cf77ee1 Fix unused variable warning during compile. Michael J. Kidd authored at Michael J. Kidd comitted at