Commit Graph

4 Commits

Author SHA1 Message Date
Lux Aliaga 76ad4aad5a
src: Better error handling
Should make it more Rusty™. Solves #2. Thank you @j0 for the help. (i'm
big stupid lol)
2022-09-19 00:31:30 -03:00
Lux Aliaga c2e276c6e2
src: Code cleanup
To demessify the project I've decided to clean the code a bit and make
it a little less painful to see. The main change here is that instead of
defining every single time the active and inactive directories it calls
it from a vector in common.rs, which is cleaner and allows for easily
implementing a config file to customize those values later on. Also,
version bump!
2022-09-17 05:49:52 -03:00
Lux Aliaga 7e547e40fc common: Changed exit code from 0 to 1.
Since the script exits with an error, it's better to make Vento exit
with an error code instead of 0.
2022-09-15 00:13:02 -03:00
Lux Aliaga 8a68b7d3b5 src: Moved env_config() to new module
Since item management will depend on this function, making it
independent from inv.rs will probably be for the best.
2022-09-14 19:45:28 -03:00