aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/cmd/tools/vbuild-examples.v
blob: 82ddc1e968a129192bca1455f73f864d7a2b1e26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
	}
}