mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974)
This commit is contained in:
parent
10c9f61d61
commit
d7049ae2da
52 changed files with 423 additions and 344 deletions
|
@ -117,7 +117,8 @@ fn main() {
|
|||
if foptions.is_verbose {
|
||||
eprintln('vfmt worker_cmd: $worker_cmd')
|
||||
}
|
||||
worker_result := os.exec(worker_cmd) or {
|
||||
worker_result := os.execute(worker_cmd)
|
||||
if worker_result.exit_code != 0 {
|
||||
errors++
|
||||
continue
|
||||
}
|
||||
|
@ -277,7 +278,7 @@ fn (foptions &FormatOptions) post_process_file(file string, formatted_file_path
|
|||
}
|
||||
|
||||
fn (f FormatOptions) str() string {
|
||||
return
|
||||
return
|
||||
'FormatOptions{ is_l: $f.is_l, is_w: $f.is_w, is_diff: $f.is_diff, is_verbose: $f.is_verbose,' +
|
||||
' is_all: $f.is_all, is_worker: $f.is_worker, is_debug: $f.is_debug, is_noerror: $f.is_noerror,' +
|
||||
' is_verify: $f.is_verify" }'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue