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

onefetch

minimum rustc 1.27 Travis status

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

Usage

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

Compatibility

Only works with Git repositories.




Did you find this post useful? Show some love!
DISCUSSION (5)

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\main.rs:183:19
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).

Sorry.

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.

o2sh
Join dev.to

Be a better developer. Free forever.