Crates.io | anyversion |
lib.rs | anyversion |
version | 0.2.0 |
source | src |
created_at | 2020-03-14 11:04:20.692032 |
updated_at | 2020-03-15 08:54:19.869706 |
description | An utility command to just show a version of arbitrary command. |
homepage | |
repository | https://github.com/kotofurumiya/anyversion |
max_upload_size | |
id | 218519 |
size | 16,125 |
You don't need try hard to get version number anymore.
The hardest problem in this galaxy is "How to get the version of the installed command".
There are four popular ways to show a version.
ffmpeg -version
node --version
python -V
rustc version
anyversion
makes these into single syntax.
anyversion ffmpeg
anyversion node
anyversion python
anyversion rustc
That's all.
Install rust toolchain with rustup
from below URL.
Next, use cargo install
(which is installed by rustup
) to install anyversion
.
cargo install anyversion
Run cargo install anyversion
again.
# Syntax
anyversion <command_name>
# For example
anyversion bash
anyversion git
anyversion rustc
anyversion node
anyversion make
anyversion anyversion
I'll try to support more commands. But it's open source software. You can contribute it. I think that writing code is more exciting than just waiting.
It's safer. Some commands run unexpected process with invalid args. For example, blahblah version
may make a project with version
directory. bazbaz -v
may start a REPL with verbose mode.