This cargo sub-command execute cargo run --example
easily via fuzzy finder.
There are some files in the examples
directory.
shellsession
$ 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
.
```shellsession $ 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
.
shellsession
$ cargo ex
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running `target/debug/examples/hello-example`
Hello example!