Skip to content

Commit 0ae37bd

Browse files
committed
upgrade the version to 0.2.2
1 parent c192da0 commit 0ae37bd

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fcnt"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2021"
55
readme = "README.md"
66
homepage = "https://github.com/seamile/fcnt"

README.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ It can quickly count the number and size of huge amount of files in multiple dir
77
## Usage
88

99
```shell
10-
$ fcnt3 [OPTIONS] [DIRECTORIES]...
10+
$ fcnt [OPTIONS] [DIRECTORIES]...
1111
```
1212

1313
- Arguments:
@@ -24,16 +24,26 @@ $ fcnt3 [OPTIONS] [DIRECTORIES]...
2424

2525
## Example
2626

27-
```shell
28-
$ fcnt -as ./Pictures ./Music ./Downloads/Gzh/Gifts
27+
By default, the results will be sorted by file count in descending order.
2928

30-
Name Files Dirs Size
31-
./Pictures 7783 276 17.6G
32-
./Music 3671 1199 21G
33-
./Downloads/Gifts 295 6 689.8M
29+
```shell
30+
fcnt ./Pictures ./Music ./src/package
31+
Path Files Dirs
32+
./src/package 8070 3120
33+
./Pictures 7799 274
34+
./Music 3455 1196
35+
──────────────────────────
36+
Total 19324 4590
3437
```
3538

36-
## TODO
39+
If the `-s` option is specified, the sort column will be change to `Size`.
3740

38-
- [ ] add test cases.
39-
- [ ] add documentation in the source code.
41+
```shell
42+
$ fcnt -s ./Pictures ./Music ./src/package
43+
Path Files Dirs Size
44+
./Music 3455 1196 21G
45+
./Pictures 7799 274 17.5G
46+
./src/package 8070 3120 4G
47+
─────────────────────────────────
48+
Total 19324 4590 42.6G
49+
```

src/cmdargs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::output as op;
88

99
#[derive(Parser)]
1010
#[command(name = "fcnt")]
11-
#[command(version = "0.2.1")]
11+
#[command(version = "0.2.2")]
1212
#[command(about = "Count the total number of files in given directories.")]
1313
pub struct CmdArgParser {
1414
/// the directories (default: ./)

0 commit comments

Comments
 (0)