FlavorCLI is a feature-rich command line interface for Flavortown. When using FlavorCLI, you will be able to create and view devlogs, manage your projects, view the shop, and more, right from your command line.
FlavorCLI is a feature-rich command line interface for Flavortown. When using FlavorCLI, you will be able to create and view devlogs, manage your projects, view the shop, and more, right from your command line.
Since I’ve just released 1.0.0, I’ve finally decided that I feel happy with this version of FlavorCLI. It’s been a lot of work, but I think its paid off and I really like how it’s turned out.
I cannot go into full detail here about all the features, because there are a lot, but in short (yes i copied this from the readme)
FlavorCLI v1.0.0 is here! Since the last devlog I’ve done some stuff like writing docs for the new features and improved performance when using –resolve by using concurrent requests. Here’s the full changelog for this release! Also here’s a cool video of me publishing the last devlog through the CLI!
Log in to leave a comment
Hi guys! I’m really excited to be presenting the newest feature of FlavorCLI. And this devlog will be a bit different, as today, I am creating this devlog through FlavorCLI! Yes, that’s right, you can now create devlogs through FlavorCLI. This should hopefully mean I’ll be able to ship v1.0.0 very soon! You can also upload and delete devlogs through FlavorCLI too! Infact, I have just used the update command to add this new text!
Log in to leave a comment
By popular demand, FlavorCLI is now available on the AUR!
Check it out: https://aur.archlinux.org/packages/flavorcli
Install it with:
yay -S flavorcli
Also in this devlog,
FlavorCLI v0.3.0 is now out! Yes, I have finally decided to move out of betas!
Here is some of the highlights:
Another tedious thing done, I have spent way more time then I’m willing to admit (but am being forced to) writing out docs that will be available at https://flavorcli.gitbook.io/flavorcli-docs/ when merged. I’ve written out docs for each command and some basic concepts. Next thing to work on is getting FlavorCLI into package managers such as the AUR.
Log in to leave a comment
Those “quick minor features” were defiantly “quick and minor”…
Yeah so they were much more tedious then I thought they would be haha, I’ve been working on adding some more customization flags to some of the commands. These are namely custom fields! Yes, you can now customise what fields will show up in the table. You can also resolve a user’s projects, and if you want a really long output, each of those project’s devlogs. There’s also sorting for the shop!
Anyway, I’m now working on adding documentation to GitBook, and once that’s finished, I’ll be working on releasing the next release.
The new project create and update commands are now here! You can expect a few more minor changes before I start to prepare another release! In the next release, FlavorCLI will be available on many more package managers, so I have some CI changes to do before the next release.
Log in to leave a comment
Pretty small devlog, but I’ve been itching to get a devlog done for a while now haha, and I thought I’d share an update on what’s happening.
Right now, I’m working on implementing the new project POST and PATCH routes, however there seems to be an issue with those routes (see #852) so that’s on hold for now.
I’ve also refactored the auth set command so that you no longer need to supply your user ID, it’ll get it from the users/me endpoint automagically! Ofc you can still override it for some reason, and its still required if you specify --no-verify.
Log in to leave a comment
I’m happy to announce version 0.2.0-beta.1!
In this version, I’ve been ticking off a lot of things that I’ve had on my TODO list. I’ve also moved my build script to a GitHub action! Anyway, to see the full list of changes, please check out my changelog below:
I’ve done some boring stuff regarding releases and released beta 2! I’ve added sentry so I can know immediately if something breaks for some reason, which it inevitably will lmao, and also fixed some clippy issues. There’s also now an install and uninstall script, as well as a script that I’m using to build and publish the release. Here’s the full changelog for beta 2:
The final command (for now), user list, is now done! Unfortunately it doesn’t have as many columns as I’d liked, as the user list route returns less then the get route.
I’m also releasing a quick beta version at https://github.com/Lordseriouspig/flavorcli/releases/latest ! If you have any feedback or encounter any issues, please let me know.
I’m nowhere near done working on FlavorCLI. I’ve actually chosen not to “ship” this project on Flavortown yet for now. I’m still waiting on some more API routes to be added, once they are, I’ll be able to make FlavorCLI so much more powerful.
Even after that, I still have plenty more features planned. I’ll reveal more details at some point soonnn(tm).
Log in to leave a comment
And this is the second to last command done! User get was a pretty simple one, that for some reason needed a workaround for a really weird edge case where user 1 has a blank display name. Anywaayayyys, after I finish the next command, which may or may not be done by today, it’ll be time to release a quick preview version, which will wither be really simple or reeeeeaaaallyy annoying and tedious. If anyone has suggestions for what package managers I should add it to, feel free to leave a comment.
Log in to leave a comment
The table on ft store list was surprisingly hard to get right. It took me ages to realize that owo-colors (yes thats the actual name of the crate) was affecting how long the fields are and that I had to use the colours built into the table crate, which i ngl forgot existed lmao. Anyway, I’m quite happy with how this turned out, and I think I actually prefer this better then what I was trying to do before, which was to have each region in the same cell. I would try and find an image of what I was doing earlier, but I cleared the console before I thought of taking a screenshot of it.
Also new is the banner I made! Not much to say about it, it’s pretty simple, but I quite like it and think it’s quite effective.
Log in to leave a comment
This command took a while because of some small issues with the database schema for the store being… how it is, but I essentially had to make a whole lot of workarounds with how the data is returns from the API. Regardless, I’ve managed to make it work, but for how long? I swear if someone breathes on this wrong, it will break lol. Anyway, here it is, the shop get command, which can view any shop item. Pretty happy with how this one turned out too, just took way too long haha.
Log in to leave a comment
Another quick command done, project devlog get <DEVLOG-ID> --project-id <PROJECT-ID> is pretty much built off the back of project get. Nonetheless, I’m quite happy with how it turned out. I’m really not sure the use of supplying a project ID here, it is optional, but there is a separate route to look devlogs up based on project IDs. Who knows, someone might have a use for it.
Log in to leave a comment
I’ve worked on the ft project list command, which lists every project (paginated ofc, this was handled by the API itself, so it works quite nicely), with the option to search projects. I’ve also made a nice table for it to organize the projects nicely. Here’s a quick demo of the command in use. its slow because my OBS was using up all my resources haha, it will be faster in production.
Log in to leave a comment
Great news! In this three hours, I’ve managed to make… drumroll two commands…
wow so many
Anywayyyysss, I’ve put together the auth delete command, and the project get command, and made a nice format for it, which you can see, along with examples of the error handling, in the image below (or above idk). Next up is the project list command and devlog commands. Not sure how I’m going to handle list yet, might make a shorter version of the below. Would also be a nice flag to add to the main get command.
Log in to leave a comment
I’ve written and finished the ft.exe auth set <USER_ID> <TOKEN> command. This command saves your authentication token and verifies it by sending a request to the Flavortown API. It also gets your username based off of the user id. It then saves it in your OS’ keyring, along with your User ID. If you choose, you can disable token verification with the --no-verify flag. The next command I’ll be working on will be the auth delete command.
Log in to leave a comment
I was having some issues with my devlog time not showing up, but that should be fixed now, so I can finally make a devlog.
I’m working on making a command-line interface for Flavor Town. My goals are to integrate the Flavortown API directly first, and afterwards, add more complex logic. I’m aiming to make it feasible and easy to create devlogs and manage your Flavor Town projects right from your command line!
So far, I’ve made a quick Rust skeleton (yes I’ve decided to learn Rust for this) using Clap, based on the current API. Next steps will be to add a command to save your API key, integrate it with the Flavor Town API, and then work on some more complex logic after that.
Log in to leave a comment