Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
rust-build.action
Automate publishing Rust build artifacts for GitHub releases through GitHub Actions
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Hi! Thanks for trying out my game, sorry you ran into a problem :(. Could you create a github issue and include what you're running the CLI on?
I use starship. It's incredibly good looking haha
I use confy for persisted data (just the token and high score for now) because I don't know the best practices for where to put those kinds of files, which stores it as TOML.
I love that idea! I think there might be a better way than just hardcoding all the comment types for all the languages, though. I'm using the syntect library which will parse the code based on syntax files, so I opened an issue there to see if they have anything that could help.
I used crossterm. Really love the simplicity of the API, definitely fit my purposes well.
parse_git_branch() { # Speed up opening up a new terminal tab by not # checking `$HOME` ...which can't be a repo anyway # # For the heck of it, micro-optimize this too: # time (repeat 1000000 { [ "$PWD" = "$HOME" ] } ) == ~4.2s # time (repeat 1000000 { [[ "$PWD" == "$HOME" ]] } ) == ~1.4s [[ "$PWD" == "$HOME" ]] && return # Fastest known way to check the current branch name # (Uses `command` to bypass wrappers like https://hub.github.com/) ref="$(command git symbolic-ref --short HEAD 2> /dev/null)" || return echo " [$ref]" }
Thank you so much for playing!! Really makes me happy to hear that <3. I'm aware of the binaries problem- I'm using a github action to create them on release, but it's using rust v1.60 even when I set it to use v1.63, so they haven't been building successfully. I submitted an issue here, feel free to take a look if you get the chance, I could use a second pair of eyes haha.
Nice game, I built something similar my self: https://github.com/ModProg/language-guesser, but I actually think your UI is nicer, like I just droped the code in unhighlighted and everything, and you even have the preview with dots.