Skip to content

Commit 51bbe5e

Browse files
committed
Fix Windows release test for v0.2.2
1 parent 4179a5e commit 51bbe5e

9 files changed

Lines changed: 18 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v0.2.2 - 2026-05-26
4+
5+
### Fixed
6+
7+
- Made the custom config path CLI test portable on Windows by validating parsed JSON output instead of matching escaped path text.
8+
39
## v0.2.1 - 2026-05-26
410

511
### Fixed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "teams-cli"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2021"
55
rust-version = "1.75"
66
license = "MIT"

docs/man/teams-agent-contract.7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH TEAMS-AGENT-CONTRACT 7 "May 26, 2026" "teams-cli 0.2.1" "Miscellaneous Information"
1+
.TH TEAMS-AGENT-CONTRACT 7 "May 26, 2026" "teams-cli 0.2.2" "Miscellaneous Information"
22
.SH NAME
33
teams-agent-contract \- automation contract for the teams CLI
44
.SH DESCRIPTION

docs/man/teams-auth.7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH TEAMS-AUTH 7 "May 26, 2026" "teams-cli 0.2.1" "Miscellaneous Information"
1+
.TH TEAMS-AUTH 7 "May 26, 2026" "teams-cli 0.2.2" "Miscellaneous Information"
22
.SH NAME
33
teams-auth \- authentication model for the teams CLI
44
.SH DESCRIPTION

docs/man/teams-config.5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH TEAMS-CONFIG 5 "May 26, 2026" "teams-cli 0.2.1" "File Formats"
1+
.TH TEAMS-CONFIG 5 "May 26, 2026" "teams-cli 0.2.2" "File Formats"
22
.SH NAME
33
teams-config \- configuration file for the teams CLI
44
.SH DESCRIPTION

docs/man/teams-examples.7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH TEAMS-EXAMPLES 7 "May 26, 2026" "teams-cli 0.2.1" "Miscellaneous Information"
1+
.TH TEAMS-EXAMPLES 7 "May 26, 2026" "teams-cli 0.2.2" "Miscellaneous Information"
22
.SH NAME
33
teams-examples \- practical examples for the teams CLI
44
.SH DESCRIPTION

docs/man/teams.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH TEAMS 1 "May 26, 2026" "teams-cli 0.2.1" "User Commands"
1+
.TH TEAMS 1 "May 26, 2026" "teams-cli 0.2.2" "User Commands"
22
.SH NAME
33
teams \- Microsoft Teams CLI for Microsoft Graph automation
44
.SH SYNOPSIS

tests/cli.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn version_flag_works() {
3838
.arg("--version")
3939
.assert()
4040
.success()
41-
.stdout(predicate::str::contains("0.2.1"));
41+
.stdout(predicate::str::contains("0.2.2"));
4242
}
4343

4444
#[test]
@@ -109,11 +109,12 @@ fn config_init_respects_custom_config_path() {
109109
let path = dir.path().join("custom-config.toml");
110110
let path_str = path.to_str().unwrap();
111111

112-
teams()
112+
let assert = teams()
113113
.args(["--config", path_str, "--output", "json", "config", "init"])
114114
.assert()
115-
.success()
116-
.stdout(predicate::str::contains(path_str));
115+
.success();
116+
let stdout: serde_json::Value = serde_json::from_slice(&assert.get_output().stdout).unwrap();
117+
assert_eq!(stdout["data"]["path"].as_str(), Some(path_str));
117118

118119
assert!(path.exists());
119120
}

0 commit comments

Comments
 (0)