Skip to content

Commit

Permalink
Clean command: update help message and related tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanjeev committed Jan 6, 2025
1 parent d42c3dd commit 2573c1b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/criticalup-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ enum Commands {
offline: bool,
},

/// Delete all unused and untracked installations
/// Delete cache and unused installations
Clean,

/// Run a command for a given toolchain
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: crates/criticalup-cli/tests/cli/clean.rs
expression: repr
snapshot_kind: text
---
exit: exit status: 0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
source: crates/criticalup-cli/tests/cli/clean.rs
expression: repr
snapshot_kind: text
---
exit: exit status: 0

empty stdout

stderr
------
Delete all unused and untracked installations
Delete cache and unused installations

Usage:
criticalup-test clean [OPTIONS]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: crates/criticalup-cli/tests/cli/root.rs
expression: repr
snapshot_kind: text
---
exit: exit status: 1

Expand All @@ -16,7 +17,7 @@ Usage:
Commands:
auth Show and change authentication with the download server
install Install the toolchain for the given project based on the manifest `criticalup.toml`
clean Delete all unused and untracked installations
clean Delete cache and unused installations
run Run a command for a given toolchain
remove Delete all the products specified in the manifest `criticalup.toml`
verify Verify a given toolchain
Expand Down

0 comments on commit 2573c1b

Please sign in to comment.