Skip to content

aoki/cargo-ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cargo-ex

This cargo sub-command execute cargo run --example easily via fuzzy finder.

demo.mp4

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!

Releases

No releases published

Packages

No packages published

Languages