File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1+ let proc cmd =
2+ Printf. eprintf " 🐚 %s\n %!" cmd;
3+ let _exit_code = Unix. system cmd in
4+ ()
5+
16let collect_chan (channel : in_channel ) : string =
27 let rec loop acc =
38 match input_line channel with
Original file line number Diff line number Diff line change 1+ (* * Run a given string as an external process with arguments.
2+
3+ Redirect the called process stdout and stderr to the current process stdout.
4+
5+ Also print the command with a pretty prompt.
6+
7+ *)
8+ val proc : string -> unit
9+
110(* * Run the given CLI command as external process and collect its stdout to the resulting string. *)
211val proc_stdout : string -> string
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ let clone_repo ~repo ~local_path =
1414 Printf. sprintf " git clone git@github.com:%s/%s.git %s" owner repo
1515 temp_dir
1616 in
17- let _ = Shell. proc_stdout cmd in
17+ Shell. proc cmd;
1818 temp_dir
1919
2020let read_root_tree ~root_dir_path =
You can’t perform that action at this time.
0 commit comments