Crates.io | cargo-ex |
lib.rs | cargo-ex |
version | 0.1.1 |
source | src |
created_at | 2022-04-08 13:34:50.469952 |
updated_at | 2022-04-08 14:18:10.830638 |
description | This cargo sub-command execute `cargo run --example` easily via fuzzy finder. |
homepage | |
repository | https://github.com/aoki/cargo-ex |
max_upload_size | |
id | 564268 |
size | 31,419 |
This cargo sub-command execute cargo run --example
easily via fuzzy finder.
cargo install cargo-ex
There are some files in the examples
directory.
$ ls -1 examples
hello-cargo.rs
hello-example.rs
hello-rust.rs
hello-wave.rs
It shows files using a fuzzy finder in the examples
directory when you execute cargo ex
.
$ cargo ex
hello-rust.rs
hello-cargo.rs
> hello-example.rs
hello-wave.rs
4/4 1/0
> heo
Then you press the enter to execute cargo run --examples
.
$ cargo ex
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running `target/debug/examples/hello-example`
Hello example!