From 65426821c44864cd05c05ef89f7a3adebd3fb202 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 13 Nov 2019 20:14:30 +0300 Subject: [PATCH] repl: hide temp filename from output --- tools/vrepl.v | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tools/vrepl.v b/tools/vrepl.v index 18fd3206af..6ea5877cc8 100644 --- a/tools/vrepl.v +++ b/tools/vrepl.v @@ -145,10 +145,7 @@ pub fn run_repl() []string { rerror(err) return []string } - vals := s.output.split('\n') - for i:=0; i < vals.len; i++ { - println(vals[i]) - } + print_output(s) } else { mut temp_line := r.line @@ -161,6 +158,7 @@ pub fn run_repl() []string { temp_source_code := r.functions.join('\n') + r.lines.join('\n') + '\n' + r.temp_lines.join('\n') + '\n' + temp_line os.write_file(temp_file, temp_source_code) s := os.exec('"$vexe" run $temp_file -repl') or { + println("SDFSDF") rerror(err) return []string } @@ -178,15 +176,25 @@ pub fn run_repl() []string { r.temp_lines.delete(0) } } - vals := s.output.split('\n') - for i:=0; i