cross-posted from: https://lemmy.blahaj.zone/post/45574613
Hello, I built a CLI that gives you web links for stuff in your repo you might want to link to.
You know the situation. Your coworker checked in some real garbage and you want to politely ask what they were thinking. But now you gotta describe where the code snippet is and they have to open it in their text editor and so on. Alternatively, you could open up your Git forge’s webpage and navigate to the file, copy a permalink and send it to them. Also takes quite a bit of time.
With the CLI, you can instead just paste the local file path and it gives you the permalink right away.
Similarly, you can also get a direct link to an issue or PR, which’s number you might’ve found in a commit message.There’s a release available for download for Linux x86_64: https://codeberg.org/trem/forge/releases
And if you’ve got the Rust toolchain on your system, then you can also install it like so:cargo install --git https://codeberg.org/trem/forgeP.S.: The implementation is somewhat hacky, because a Git repository doesn’t really know what webpage it was cloned from. So, please do let me know, if you run into any issues.



Figured out why cross-compilation for Windows wasn’t working. So, now there’s release binary available for that, too.
Completely untested, good luck.
Cross-compiling for macOS is prohibited by Apple, so even more good luck to you guys. 🫠