-
-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: clean up debug log output (#2922)
- Loading branch information
Showing
6 changed files
with
47 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
--- | ||
source: src/cli/shell.rs | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
export MISE_TINY_VERSION=1.0.1 | ||
mise mise tiny@1.0.1 installing | ||
mise mise tiny@1.0.1 installing | ||
mise mise tiny@1.0.1 ~/data/plugins/tiny/bin/install | ||
mise mise tiny@1.0.1 ✓ installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
--- | ||
source: src/cli/upgrade.rs | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
|
||
mise mise tiny@3.1.0 installing | ||
mise mise tiny@3.1.0 installing | ||
mise mise tiny@3.1.0 ~/data/plugins/tiny/bin/install | ||
mise mise tiny@3.1.0 ✓ installed | ||
mise mise Uninstalling tiny@3.0.0 uninstall | ||
mise mise Uninstalling tiny@3.0.0 removing ~/data/installs/tiny/3.0.0 | ||
mise mise Uninstalling tiny@3.0.0 removing ~/data/cache/tiny/3.0.0 | ||
mise mise Uninstalling tiny@3.0.0 ✓ done |
10 changes: 9 additions & 1 deletion
10
src/cli/snapshots/mise__cli__upgrade__tests__upgrade_bump-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
--- | ||
source: src/cli/upgrade.rs | ||
expression: output | ||
snapshot_kind: text | ||
--- | ||
|
||
mise mise tiny@3.1.0 installing | ||
mise mise tiny@3.1.0 installing | ||
mise mise tiny@3.1.0 ~/data/plugins/tiny/bin/install | ||
mise mise tiny@3.1.0 ✓ installed | ||
mise mise Uninstalling tiny@3.0.0 uninstall | ||
mise mise Uninstalling tiny@3.0.0 removing ~/data/installs/tiny/3.0.0 | ||
mise mise Uninstalling tiny@3.0.0 removing ~/data/cache/tiny/3.0.0 | ||
mise mise Uninstalling tiny@3.0.0 ✓ done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,7 +255,13 @@ mod tests { | |
tiny = "2" | ||
"###); | ||
|
||
assert_cli_snapshot!("use", "tiny@1", "tiny@2", "tiny@3", @"mise ~/cwd/.test.mise.toml tools: [email protected], [email protected], [email protected]"); | ||
assert_cli_snapshot!("use", "tiny@1", "tiny@2", "tiny@3", @r" | ||
mise ~/cwd/.test.mise.toml tools: [email protected], [email protected], [email protected] | ||
mise mise [email protected] installing | ||
mise mise [email protected] installing | ||
mise mise [email protected] ~/data/plugins/tiny/bin/install | ||
mise mise [email protected] ✓ installed | ||
"); | ||
assert_snapshot!(file::read_to_string(&cf_path).unwrap(), @r###" | ||
[tools] | ||
tiny = ["1", "2", "3"] | ||
|
@@ -292,7 +298,13 @@ mod tests { | |
tiny = "2" | ||
"###); | ||
|
||
assert_cli_snapshot!("use", "tiny@1", "tiny@2", "tiny@3", @"mise ~/cwd/.test.mise.toml tools: [email protected], [email protected], [email protected]"); | ||
assert_cli_snapshot!("use", "tiny@1", "tiny@2", "tiny@3", @r" | ||
mise ~/cwd/.test.mise.toml tools: [email protected], [email protected], [email protected] | ||
mise mise [email protected] installing | ||
mise mise [email protected] installing | ||
mise mise [email protected] ~/data/plugins/tiny/bin/install | ||
mise mise [email protected] ✓ installed | ||
"); | ||
assert_snapshot!(file::read_to_string(&cf_path).unwrap(), @r###" | ||
[tools] | ||
tiny = ["1", "2", "3"] | ||
|
@@ -350,10 +362,14 @@ mod tests { | |
let cf_path = dirs::CONFIG.join("config.toml"); | ||
let orig = file::read_to_string(&cf_path).unwrap(); | ||
|
||
assert_cli_snapshot!("use", "-g", "tiny@2", @r###" | ||
assert_cli_snapshot!("use", "-g", "tiny@2", @r" | ||
mise ~/config/config.toml tools: [email protected] | ||
mise mise [email protected] installing | ||
mise mise [email protected] installing | ||
mise mise [email protected] ~/data/plugins/tiny/bin/install | ||
mise mise [email protected] ✓ installed | ||
mise tiny is defined in ~/cwd/.test-tool-versions which overrides the global config (~/config/config.toml) | ||
"###); | ||
"); | ||
assert_snapshot!(file::read_to_string(&cf_path).unwrap(), @r##" | ||
[env] | ||
TEST_ENV_VAR = 'test-123' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters