sunwait

Commits at bdb74658f89a506697b654a26e1fe2486bd10a5b

  1. bdb74658 Fix incorrect offset usage in man page Shota FUJI authored at Shota FUJI comitted at
  2. 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
  3. 30ddee1c Twilight angle CLI argument Shota FUJI authored at Shota FUJI comitted at
  4. 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
  5. 1927160c Fix incorrect sunrise/sunset calculation on non-UTC timezone Shota FUJI authored at Shota FUJI comitted at
  6. 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
  7. 5be27e01 Parse date args on "report" command Shota FUJI authored at Shota FUJI comitted at
  8. 8e71843d Call "generate_report" on report command Shota FUJI authored at Shota FUJI comitted at
  9. 88c46686 Support hyphen-less "utc" flag Required for behavior matching tests. Shota FUJI authored at Shota FUJI comitted at
  10. f272abe2 Set correct default value for "targetTimet" Shota FUJI authored at Shota FUJI comitted at
  11. 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
  12. 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
  13. 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
  14. 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
  15. 7b4e63f6 Print poll result to stdout Shota FUJI authored at Shota FUJI comitted at
  16. f2ec1ae9 Parse latitude and longitude CLI args Shota FUJI authored at Shota FUJI comitted at
  17. a3e7b62b Support command argument Shota FUJI authored at Shota FUJI comitted at
  18. 8249d378 UTC flag Instead of "--utc" being an alias for "--gmt", I swapped those too. Shota FUJI authored at Shota FUJI comitted at
  19. 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
  20. dab5ef6c Add help flag to Zig main Shota FUJI authored at Shota FUJI comitted at
  21. 81427ae9 Implement version flag to Zig main Shota FUJI authored at Shota FUJI comitted at
  22. 0f68071e Skip tests for features not implemented yet Errors are so noisy. Shota FUJI authored at Shota FUJI comitted at
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. dca3da5a Delete Visual Studio config files Why? Shota FUJI authored at Shota FUJI comitted at
  30. 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