1
0
Fork 0
mirror of https://git.sr.ht/~nixgoat/vento synced 2024-11-16 03:53:04 +00:00
Commit graph

45 commits

Author SHA1 Message Date
Lux Aliaga 3cd5ad758c
common: Add custom config
This should allow users to customize the location for their Vento
directory by modifying a single key in vento.toml. More information is
available in the manual page for vento.toml. Powered by config-rs.
Solves #4.
2022-09-26 23:58:42 -03:00
Lux Aliaga d3a2391cf2
readme: Fix syntax
vento help -> vento -h
2022-09-26 17:05:23 -03:00
Lux Aliaga ac986f8822
vento: The BIG commit
Since I worked on a LOT of stuff here, it's quite hard for me to
separate every change I've done. Take this as one huge refactor, which
includes:
- Changing the syntax of the Vento command
- Separating Vento into three binaries: vento, take, drop
- Moving the help messages into a new file called help.rs
- Removing unnecessary format macros
- Changing expect macros to context, for better anyhow compatibility
- Updating the documentation for these changes.
2022-09-26 16:58:33 -03:00
Lux Aliaga aa233555a4
readme: Update quickstart
I know this is not accurate yet but I want to not bother with this
later.
2022-09-24 22:56:44 -03:00
Lux Aliaga 13e28e445c
build: Create manpages for Vento.
I've backtracked from using Clap and instead will keep using my own
custom command parser. I'll be using the man crate instead. These
manpages have the new syntax which I'll implement in the following
commits. This also uses cargo-make to install the manpages because I
don't want the manpages being replaced everytime I rebuild.
2022-09-24 22:51:57 -03:00
Lux Aliaga 61235e7a63
manifest: Bump version to v1.0
Also added some manifest information and the "clap" and "clap_mangen"
dependencies.
2022-09-19 22:25:34 -03:00
Lux Aliaga edcf1408ee
readme: Credit jo!
Seriously, couldn't have done it without her lol
2022-09-19 00:32:00 -03:00
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 756c56ea9f
readme: Add logo
yay we have a new project logo! 💖
2022-09-18 01:43:49 -03:00
Lux Aliaga d24727d301
inv: Prevent non-files from displaying file size
Maybe for folders I could later add a folder size but the method I'm
using to calculate file sizes doesn't work with folders, so yeah.
2022-09-18 00:35:50 -03:00
Lux Aliaga d11a200d6f
inv: Added directory listing
Now you can list the contents of directories with the list command!
2022-09-18 00:31:23 -03:00
Lux Aliaga 6c51a8da6e
inv: Show new message if inventory is empty
Basically so it looks less dumb if there aren't any items in the
inventory the user asked to list.
2022-09-17 22:53:44 -03:00
Lux Aliaga 445b5b1671
inv: Add directory count to inventory list
This commit modifies the spacing before an item in the inventory list.
2022-09-17 22:43:34 -03:00
Lux Aliaga 6c10953e88
inv: Add file size to inventory list
This commit also improves formatting in the inventory list.
2022-09-17 18:33:40 -03:00
Lux Aliaga 28bed7faff
vento: Added Anyhow as a dependency
For better error handling. (thank you @j0 for the suggestion)
2022-09-17 17:43:24 -03:00
Lux Aliaga 30f99bbda4
inv: Add file types to inventory list
This will be specially useful once we can access directories from vento
list. For now it still serves the function of letting the user know some
basic metadata about the files they're keeping in their inventory
2022-09-17 17:27:33 -03:00
Lux Aliaga 96588e7642
readme: Remove TODO list
I'll be using the issue tracker to work on project management from now
on.
2022-09-17 14:58:26 -03:00
Lux Aliaga 8034a25eb9
readme: Add man pages to the TODO list
I mean I need to make this a real POSIX program with full documentation,
right?
2022-09-17 06:01:58 -03:00
Lux Aliaga 98a6b8deca
readme: Added item to TODO list
This idea is to basically replicate the original concept more closely.
2022-09-17 06:00:12 -03:00
Lux Aliaga cb2b59e641
readme: Update TODO list
Just adding more work for me ig 💀
2022-09-17 05:56:42 -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 5d8771be3c readme: No prebuilt binaries
Backing down because Codeberg has no CI (yet)
2022-09-15 01:45:12 -03:00
Lux Aliaga a9344b7670 readme: TODO list
This project is not finished, friends!
2022-09-15 01:40:01 -03:00
Lux Aliaga 632fa4422b vento: Added README.md 2022-09-15 01:37:08 -03:00
Lux Aliaga 38e8627bc2 src: Added comments
Just so I don't get lost later lol
2022-09-15 00:47:13 -03:00
Lux Aliaga 68223011da main: Command shortcodes
This commit adds shorter versions of commands, so you can save time!
2022-09-15 00:22:49 -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 961a30b47b main: Removed PathBuf from dependencies
This should suppress a warning indicating this exact issue
2022-09-15 00:10:19 -03:00
Lux Aliaga 6d10d77fbe fixup! fixup! item: Implement taking files 2022-09-14 23:59:57 -03:00
Lux Aliaga 50d8318d13 fixup! item: Implement file dropping 2022-09-14 23:54:57 -03:00
Lux Aliaga 98a93f6d94 item: Implement file dropping
And now you can take files out of your inventory! This should cover most
of the functionality.
2022-09-14 23:52:00 -03:00
Lux Aliaga 496bbfb64f fixup! item: Implement taking files 2022-09-14 23:50:58 -03:00
Lux Aliaga a3894ab02a item: Implement taking files
You can now take files and put them in your inventory! An essential
function of this program that should've been implemented from the
beginning!
2022-09-14 23:20:17 -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
Lux Aliaga 1ecc16ca9d main: Added help message
It has a copyright notice and some commands. Not much else, really.
2022-09-14 19:26:35 -03:00
Lux Aliaga 524a5d3674 inv: list: Tabulation before item
Just to make it look a bit more fancy
2022-09-14 19:11:42 -03:00
Lux Aliaga cc2d1053cb fixup! src: Added license notice 2022-09-14 18:48:00 -03:00
Lux Aliaga 8ac901c0d6 src: Added license notice 2022-09-14 18:45:47 -03:00
Lux Aliaga 1f5bf3f139 vento: Licensed under GPLv3
This commit licenses the project under GPLv3. Why that license? I don't
know, just needed a license and that one seemed like a good option.
2022-09-14 17:01:37 -03:00
Lux Aliaga 9d24f51b1c inv: list: Add method to catch invalid slot
If you tried to type anything that isn't a valid slot, Vento would
panic. This commit should fix that.
2022-09-14 16:33:19 -03:00
Lux Aliaga 88d07f5014 fixup! fixup! vento: Imported changes to Git 2022-09-14 16:21:11 -03:00
Lux Aliaga 9b49385044 inv: list: Code cleanup
inv::list() had quite an unnecessary function so I cleaned the code a
bit so it works a bit more cleanly™
2022-09-14 16:14:07 -03:00
Lux Aliaga 24d962fa7b inv: Code comments
I've added some comments to make browsing this file a bit less painful.
2022-09-14 16:11:24 -03:00
Lux Aliaga 4a2922c571 fixup! vento: Imported changes to Git 2022-09-14 09:41:06 -03:00
Lux Aliaga 282a358f6e vento: Imported changes to Git
Since I didn't work on the initial part of the project on Git, I guess
I'll just do a big commit with all of what I did. This includes the
inventory management commands "list" and "switch", plus the command to
initialize Vento.
2022-09-14 09:36:34 -03:00