that

Crates.iothat
lib.rsthat
version0.1.3-2
sourcesrc
created_at2022-03-22 03:22:17.959131
updated_at2022-04-06 20:30:25.690067
descriptionnothing appropriate
homepagehttps://github.com/btwiuse/that
repositoryhttps://github.com/btwiuse/that
max_upload_size
id554458
size11,127
Broken Pipe (btwiuse)

documentation

https://docs.rs/that

README

that

crates.io Documentation Build Status

that is yet another clone of which, as the result of my attempt to accomplish something out of nothing.

The main function contains only a single line of code.

fn main() -> nothing::Probably<()> {
    println!("{}", that::Args::parse().locate()?.display()).into()
}

Besides that, there is nothing appropriate.

$ whatis that
that: nothing appropriate

Install

$ cargo +nightly install that

Usage

that 0.1.3
locate the binary for a command

USAGE:
    that <COMMAND>

ARGS:
    <COMMAND>    command name

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

Examples

if the command is found in PATH, print the path and exit with 0

$ that cat
/usr/sbin/cat
$ echo $?
0

otherwise do nothing, exit with 1

$ that dog
$ echo $?
1
Commit count: 0

cargo fmt