Skip to content

Commit a9f127a

Browse files
committed
debug
1 parent 06a269f commit a9f127a

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

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 = "cpa"
3-
version = "0.0.7"
3+
version = "0.0.9"
44
edition = "2021"
55

66
[dependencies]

src/python.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,16 @@ fn append_eof(content: String) -> String {
7474
let os = env::consts::OS;
7575
let mut s = content.clone();
7676
if os == "windows" {
77+
println!("windows append");
7778
s.push_str("\r\n");
79+
} else if os == "macos" {
80+
println!("macos append");
81+
s.push('\n');
82+
} else if os == "linux" {
83+
println!("linux append");
84+
s.push('\n');
7885
} else {
86+
println!("else append");
7987
s.push('\n');
8088
}
8189
s

0 commit comments

Comments
 (0)