This PR makes it so that a user can specify an automatic theme mode, to automatically switch between light and dark terminals based on what's detected. The user can then specify the light and dark themes (--theme-dark and --theme-light as args, and similarly via config).
This approach isn't super original, and it's based on the approach used by bat (though not 100% the same).
Note that this is done only at startup and not constantly checking.
Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
The best way of doing this is probably something like a workspace... but I'm not really in the mood to refactor this into a workspace at the moment, so this will have to do :p
This change should fix the issue around `cargo install` being confused by the schema generation binary by just moving it entirely into a separate tool "crate".
* refactor: separate schema generation to its own binary, go back to lib-bin setup
Decided it might be nicer to separate the schema generation bit to its
own binary. This does mean that we have to go back to the lib-bin
system, as otherwise passing shared code is _really_ hard.
* handle versioning
* run fmt