A "normal" CLI tool. ls? mkdir? echo? cat? Sure. But first try your luck and maybe what happens is actually what you want :)
Youssef
Check their project out: ReeTui
aal337
Check their projects out: Ascii Scenery Assembler, Coffeemon Code, Accumulated Time Calculator
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
Everything uploaded on GitHub and crates.io!
See the README (Demo or Readme link) on how to install!
Everything works now!
(The video showcases the cat command alongside with the coinflip and the machine)
I'm gonna publish it on crates.io and github and ship!
Um..yeah.
These 5h are mostly coding and refactoring, I will upload to the repo today too.
Again, if there was something to show earlier, I would've shown it. But I don't see the point in cluttering the Explore and Subscriber feed with devlogs like minor code changes, started the gambling machine and a random picture. Really.
So, I'm literally finished, the logic is all in place, but it seems like there are small errors here and there screwing the logic up. Also, I'm gonna play around with the alignment too to make it actually fit.
The coinflip is working now (but the block's border not :rip:). Video attached.
Anyways, the best proof I actually did something is that I already hate ANSI formatting, if you (or the program you're using) do(es) one tiny thing wrong, literally EVERYTHING is screwed up.
So, next, I'm gonna continue with the gambling machine.
Played around with the awesome tool chafa (youssef recommended it to me) and now got, thanks to itself, pixabay, canva and some time, two nice coin images! (I only need to do the side, but I'm really impressed by the tool (see below).
The art below uses a 16-bit color channel, more is possible but my terminal can't display more...
First game - coinflip - finished!
So, now, after I uploaded the code the the repo, you can actually use this, but it'll only have the cointhrow, no difficulty settings and no partial success option, so all this needs to be done. After 1-2 extra games I could actually imagine a ship!
Made (and copied hehe) some ASCII art for the coinflip and some automates and the corresponding Rust bindings, also tried some ratatui stuff
Finished the commands!
To be fair: Not all of them, but plenty since I deleted the ones that don't really contribute to end experience and are relatively hard to implement.
Again, see the screenshot.
So, what's left to do?
1. Having prettier errors (so no returning them from the main function)
2. Gambling stuff
Damn did it get late today...anyways, I was at least a bit productive, so I only have 6 commands left to do! (See the screenshot below) I won't upload today, since I got many, but no really remarkable things done (so only 4h devlog), hope to finish them tomorrow to start with the gambling stuff.
Further work (and restructuring, of course!) done, mostly put into implementing some of the simpler commands. I don't want to go through every single change, but I uploaded the code to the repo.
I love clap (at least now), but I accidentally switched args and flags so I need to redo it partially.
Anyways, it refreshing to work on this beside my other two projects :)
Working on the commands, starting with clap is not that nice, but thanks to docs.rs, I'm now at least able to do the basics, also, I'm now sticking (at least partially) to the POSIX shell command standard so maybe some ppl even know one or two commands without needing to open the help menu.
Also, I'll start to upload the first bit of code to the repo.
Already getting familiar with the Rust TUI framework ratatui, also have some ideas now which techniques I'm gonna use (not a complete list):
typical machine-like,
throwing a coin,
scratch cards.