Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bestgopher committed Jan 13, 2022
1 parent 5e5ea65 commit 0c44c77
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-rclean"
version = "0.1.0"
version = "1.0.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
45 changes: 42 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,54 @@
# cargo-rclean
cargo clean recursively
Execute `cargo clean` for all cargo projects in the directory.

# install
```shell
➜ cargo install --git https://github.com/bestgopher/cargo-rclean
➜ cargo install cargo-rclean
```

# usage
```shell
➜ cargo rclean
```

# todo
- [ ] output logs
# Examples
There are three cargo projects in current working directory:
```shell
➜ tree -L 2
.
├── rclean_test_1
│   ├── Cargo.lock
│   ├── Cargo.toml
│   ├── src
│   └── target
├── rclean_test_2
│   ├── Cargo.lock
│   ├── Cargo.toml
│   ├── src
│   └── target
└── rclean_test_3
├── Cargo.lock
├── Cargo.toml
├── src
└── target
```
Then I execute: `cargo rclean` :
```shell
➜ tree -L 2
.
├── rclean_test_1
│   ├── Cargo.lock
│   ├── Cargo.toml
│   └── src
├── rclean_test_2
│   ├── Cargo.lock
│   ├── Cargo.toml
│   └── src
└── rclean_test_3
├── Cargo.lock
├── Cargo.toml
└── src

```
All targets have been removed.
2 changes: 1 addition & 1 deletion src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use itertools::Itertools;
#[derive(Parser)]
#[clap(bin_name = "cargo", version, author)]
pub enum Opts {
/// Show the result of macro expansion.
/// Execute `cargo clean` for all cargo projects in the directory
#[clap(
name = "rclean",
version,
Expand Down

0 comments on commit 0c44c77

Please sign in to comment.