mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
repl: minor cleanup in runner.v (#16804)
This commit is contained in:
@@ -58,9 +58,8 @@ pub fn run_repl_file(wd string, vexec string, file string) !string {
|
|||||||
os.rm(input_temporary_filename)!
|
os.rm(input_temporary_filename)!
|
||||||
return error('Could not execute: ${rcmd}')
|
return error('Could not execute: ${rcmd}')
|
||||||
}
|
}
|
||||||
result := r.output.replace('\r', '').replace('>>> ', '').replace('>>>', '').replace('... ',
|
result := r.output.replace_each(['\r', '', '>>> ', '', '>>>', '', '... ', '',
|
||||||
'').replace(wd + os.path_separator, '').replace(vexec_folder, '').replace('\\',
|
wd + os.path_separator, '', vexec_folder, '', '\\', '/']).trim_right('\n\r')
|
||||||
'/').trim_right('\n\r')
|
|
||||||
$if windows {
|
$if windows {
|
||||||
dump(rcmd)
|
dump(rcmd)
|
||||||
dump(r.output)
|
dump(r.output)
|
||||||
|
|||||||
Reference in New Issue
Block a user