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
2020-12-20 19:01:15 +02:00

16 lines
308 B
V

module main
import os
import testing
fn main() {
args_string := os.args[1..].join(' ')
params := args_string.all_before('build-examples')
if testing.v_build_failing(params, 'examples') {
exit(1)
}
if testing.v_build_failing(params + '-live', os.join_path('examples', 'hot_reload')) {
exit(1)
}
}