Skip to content

Commit b6c5c38

Browse files
committed
updates
Signed-off-by: Jess Frazelle <[email protected]>
1 parent 54d3110 commit b6c5c38

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/cmd_kcl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl crate::cmd::Command for CmdKclExport {
134134
for file in files {
135135
let path = self.output_dir.join(file.name);
136136
std::fs::write(&path, file.contents)?;
137-
println!("Wrote file: {}", path.display());
137+
writeln!(ctx.io.out, "Wrote file: {}", path.display())?;
138138
}
139139

140140
if self.show_trace {

src/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ async fn test_main(ctx: &mut MainContext) {
601601
"tests/gear.kcl".to_string(),
602602
"tests/".to_string(),
603603
],
604-
want_out: r#""#.to_string(),
604+
want_out: r#"Wrote file: tests/output.gltf"#.to_string(),
605605
want_err: "".to_string(),
606606
want_code: 0,
607607
..Default::default()
@@ -617,7 +617,7 @@ async fn test_main(ctx: &mut MainContext) {
617617
"tests/gear.kcl".to_string(),
618618
"tests/".to_string(),
619619
],
620-
want_out: r#""#.to_string(),
620+
want_out: r#"Wrote file: tests/output.step"#.to_string(),
621621
want_err: "".to_string(),
622622
want_code: 0,
623623
..Default::default()
@@ -645,7 +645,7 @@ async fn test_main(ctx: &mut MainContext) {
645645
"fmt".to_string(),
646646
"tests/gear.kcl".to_string(),
647647
],
648-
want_out: r#"startSketchOn(body, 'END')"#.to_string(),
648+
want_out: r#"startSketchOn(body, face = END)"#.to_string(),
649649
want_err: "".to_string(),
650650
want_code: 0,
651651
..Default::default()

tests/a_2x4_lego_brick.png

-9.25 KB
Loading

0 commit comments

Comments
 (0)