cargo-ex

Crates.iocargo-ex
lib.rscargo-ex
version0.1.1
sourcesrc
created_at2022-04-08 13:34:50.469952
updated_at2022-04-08 14:18:10.830638
descriptionThis cargo sub-command execute `cargo run --example` easily via fuzzy finder.
homepage
repositoryhttps://github.com/aoki/cargo-ex
max_upload_size
id564268
size31,419
aoki (aoki)

documentation

README

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!
Commit count: 16

cargo fmt