Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Cli {
fn build_cli(&self) -> Command {
Command::new("rsp")
.about("Raw String Peeler - Convert escaped strings in YAML to readable format")
.version("0.1.0")
.version(env!("CARGO_PKG_VERSION"))
.subcommand(
Command::new("peel")
.about("Peel raw strings from YAML files")
Expand Down
2 changes: 1 addition & 1 deletion tests/cli_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn test_cli_version_command() {
.expect("Failed to execute command");

let stdout = String::from_utf8(output.stdout).unwrap();
assert!(stdout.contains("rsp 0.1.0"));
assert!(stdout.contains(&format!("rsp {}", env!("CARGO_PKG_VERSION"))));
}

#[test]
Expand Down
Loading