CLI project information

・1 min read

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.


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).



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

It fails more gracefully now.

Classic DEV Post from Dec 18 '18

How The Hell Do I use Map?

A quick and dirty guide to map.

Ossama Hjaji

A blogging community of over 100,000 software developers Join