CLI project information

Here is a little project I have been working on for the past few days. Inspired from Neofetch, Onefetch is a CLI tool that displays relevant infos about your project on your terminal. It was written in Rust and supports the following languages (so far) :

  • C
  • Clojure
  • C++
  • C#
  • Go
  • Haskell
  • Java
  • Lisp
  • Lua
  • Python
  • R
  • Ruby
  • Rust
  • Scala
  • Shell
  • TypeScript

I would love some feedback :)

o2sh / onefetch

Neofetch for your source code


minimum rustc 1.27 Travis status

Onefetch is a command-line system information tool that displays information about your project directly on your terminal.


You can either build the binary from the source code or get it from here and add it to your $PATH.

$ cd /path/of/your/repo
$ onefetch


Only works with Git repositories.

Did you find this post useful? Show some love!

I downloaded the .exe file from your current release, then I tried starting it from my PowerShell:

> .\onefetch.exe
thread 'main' panicked at 'Could not retrieve git configuration data', src\
note: Run with `RUST_BACKTRACE=1` for a backtrace.

I have no idea which kind of configuration data it needs (there's nothing in the README about this), but I guess this shouldn't happen anyway.

edit after reading your source code: So your software is limited to Git repositories? Why?

Correct, it only works with git repositories (for now). I rely on git to detect some of the project information (author(s), project name/url).


It still shouldn't crash. :-)

You're right, I replaced the panic! with: exit(1) + message.

It fails more gracefully now.

Classic DEV Post from Jun 12

My programming journey: Learning math!

About six months ago I made the decision of breaking into graphics programming. And with that came the realization of learning math.


Be a better developer. Free forever.