mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
@ -321,7 +321,7 @@ fn take_screenshots(opt Options, app AppConfig) ![]string {
|
||||
os.setenv('$k', rv, true)
|
||||
}
|
||||
|
||||
mut flags := app.capture.flags.join(' ')
|
||||
flags := app.capture.flags.join(' ')
|
||||
result := opt.verbose_execute('${os.quoted_path(v_exe)} $flags -d gg_record run ${os.quoted_path(app.abs_path)}')
|
||||
if result.exit_code != 0 {
|
||||
return error('Failed taking screenshot of `$app.abs_path`:\n$result.output')
|
||||
@ -336,7 +336,7 @@ fn take_screenshots(opt Options, app AppConfig) ![]string {
|
||||
|
||||
existing_screenshots := get_app_screenshots(out_path, app)!
|
||||
|
||||
mut flags := app.capture.flags
|
||||
flags := app.capture.flags
|
||||
|
||||
mut p_app := os.new_process(app.abs_path)
|
||||
p_app.set_args(flags)
|
||||
|
@ -86,7 +86,7 @@ fn main() {
|
||||
if module_names.len == 0 && os.exists('./v.mod') {
|
||||
println('Detected v.mod file inside the project directory. Using it...')
|
||||
manifest := vmod.from_file('./v.mod') or { panic(err) }
|
||||
module_names = manifest.dependencies
|
||||
module_names = manifest.dependencies.clone()
|
||||
}
|
||||
mut source := Source.vpm
|
||||
if '--once' in options {
|
||||
|
@ -154,7 +154,7 @@ fn (r &Repl) current_source_code(should_add_temp_lines bool, not_add_print bool)
|
||||
if !not_add_print {
|
||||
lines = r.vstartup_lines.filter(!it.starts_with('print'))
|
||||
} else {
|
||||
lines = r.vstartup_lines
|
||||
lines = r.vstartup_lines.clone()
|
||||
}
|
||||
all_lines << lines
|
||||
}
|
||||
|
Reference in New Issue
Block a user