2 releases
0.1.1 | Apr 8, 2022 |
---|---|
0.1.0 | Apr 8, 2022 |
#682 in Cargo plugins
10KB
58 lines
cargo-ex
This cargo sub-command execute cargo run --example
easily via fuzzy finder.
Install
cargo install cargo-ex
Usage
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!
Dependencies
~12–21MB
~305K SLoC