Skip to content

Commit 44b941a

Browse files
committed
feat(clap): fix chaining ct calls only display banner once
Only display banner once even when launching other ct commands.
1 parent 8b39124 commit 44b941a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.ctproject

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ ragdoll=echo 'tata is a ragdoll'
66
combine=echo "toto is dumb" && echo "tata is a ragdoll" # no recursive ct invoke for this test sentence
77
envvar='CTENV="azerty qsdf";echo $CTENV'
88
# comment on line
9-
front='cd ui; ct run' #debugging #18
9+
front='cd ui; ct run' #debugging #18
10+
dual="ct help && ct help"

src/extract.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ impl RunCommand{
5252
let sh_sub_command = self.build_subcommand();
5353
debug_log(|| format!("About to run `sh -c {:?}`", sh_sub_command));
5454
let s = Command::new("sh")
55+
.env("CTNOBANNER","true")
5556
.arg("-c")
5657
.arg(sh_sub_command)
5758
.current_dir(ct_file.path.clone())

0 commit comments

Comments
 (0)