Skip to content

Commit 4812411

Browse files
authored
Merge pull request #156 from KSXGitHub/clap-derive
Migrate from `structopt` to `clap_derive`
2 parents 6de2bbc + 2179332 commit 4812411

27 files changed

+331
-348
lines changed

.github/workflows/benchmark.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ jobs:
8484
- name: Setup pnpm
8585
uses: pnpm/[email protected]
8686
with:
87-
version: '6.3.0'
87+
version: '7.9.0'
8888
run_install: 'true'
8989

9090
- name: Compile TypeScript
9191
run: |
9292
cd ci/github-actions
93-
pnpx tsc
93+
pnpm exec tsc
9494
9595
- name: Download released versions of pdu
9696
run: node ci/github-actions/download-released-binaries.js

.github/workflows/deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,13 @@ jobs:
612612
- name: Setup pnpm
613613
uses: pnpm/[email protected]
614614
with:
615-
version: '6.3.0'
615+
version: '7.9.0'
616616
run_install: 'true'
617617

618618
- name: Compile TypeScript
619619
run: |
620620
cd ci/github-actions
621-
pnpx tsc
621+
pnpm exec tsc
622622
623623
- name: Compare benchmark of pdu against its competitors
624624
run: node ci/github-actions/competing-benchmark.js

Cargo.lock

Lines changed: 103 additions & 109 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "parallel-disk-usage"
33
description = "Highly parallelized, blazing fast directory tree analyzer"
4-
version = "0.8.0"
4+
version = "0.7.1"
55
authors = ["khai96_ <[email protected]>"]
66
edition = "2021"
77
readme = "README.md"
@@ -44,7 +44,7 @@ required-features = ["cli-completions"]
4444
[features]
4545
default = ["cli"]
4646
json = ["serde/derive", "serde_json"]
47-
cli = ["structopt", "structopt-utilities", "json"]
47+
cli = ["clap/derive", "clap_complete", "clap-utilities", "json"]
4848
cli-completions = ["cli"]
4949

5050
[dependencies]
@@ -59,11 +59,11 @@ itertools = "^0.10.3"
5959
assert-cmp = "^0.2.0"
6060
zero-copy-pads = "^0.2.0"
6161
terminal_size = "^0.2.1"
62-
structopt = { version = "^0.3.26", optional = true }
63-
structopt-utilities = { version = "^0.1.0", optional = true }
62+
clap = { version = "^3.2.16", optional = true }
63+
clap_complete = { version = "^3.2.3", optional = true }
64+
clap-utilities = { version = "^0.1.0", optional = true }
6465
serde = { version = "^1.0.142", optional = true }
6566
serde_json = { version = "^1.0.83", optional = true }
66-
strum = { version = "^0.24.1", features = ["derive"] }
6767

6868
[dev-dependencies]
6969
build-fs-tree = "^0.3.0"

0 commit comments

Comments
 (0)