Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Hasnep/version

🦀 The blazing fast way to check what version of grep you're using, written in Rust
https://github.com/Hasnep/version

version

Last synced: about 2 months ago
JSON representation

🦀 The blazing fast way to check what version of grep you're using, written in Rust

Awesome Lists containing this project

README

        

# Version

The blazing fast way to check what version of grep you're using, written in Rust.

This is a Rust rewrite of the [`version`](https://github.com/bit101/version) tool written by [Keith Peters](http://www.bit-101.com/).
I wanted to write a complete project in Rust that I would actually find useful, and I thought it would be funny to rewrite such a simple tool in Rust.
The code is super messy for now, I just got the main functionality working and am going back to refactor it into something maintainable.

## Usage

To get the version of a tool, use:

```shell
version
```

For example:

```text
$ version python3
Command: python3 -V
Python 3.9.5
```

To get a list of all the tools that `version` knows about, run:

```shell
version --list
```

## Installation

If you don't have the Rust toolchain, you can install it using [rustup](https://rustup.rs), then run:

```shell
cargo install --git "https://github.com/Hasnep/version.git"
```

## Licencing

This project is released under the MIT Licence found in the [licence file](LICENCE).
It also uses code from Keith Peters' project [`version`](https://github.com/bit101/version), licenced under the MIT Licence, which can be found the [project's repository](https://github.com/bit101/version/blob/master/LICENSE) or in the file [`LICENCE-bit101`](LICENCE-bit101).