1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/cmd/tools/vbuild-examples.v

22 lines
323 B
V
Raw Normal View History

2019-12-01 12:50:13 +03:00
module main
import (
os
testing
2019-12-05 00:14:23 +03:00
)
2019-12-01 12:50:13 +03:00
fn main() {
args := os.args
args_string := args[1..].join(' ')
params := args_string.all_before('build-examples')
2020-03-08 00:26:26 +03:00
if testing.v_build_failing(params, 'examples'){
2019-12-05 00:14:23 +03:00
exit(1)
}
2020-03-09 04:23:34 +03:00
if testing.v_build_failing(params + '-live', os.join_path( 'examples', 'hot_reload')){
2019-12-01 12:50:13 +03:00
exit(1)
}
2019-12-01 12:50:13 +03:00
}