mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
move v.v to cmd/v
This commit is contained in:
22
cmd/tools/vbuild-examples.v
Normal file
22
cmd/tools/vbuild-examples.v
Normal file
@@ -0,0 +1,22 @@
|
||||
module main
|
||||
|
||||
import (
|
||||
os
|
||||
testing
|
||||
filepath
|
||||
)
|
||||
|
||||
fn main() {
|
||||
args := os.args
|
||||
args_string := 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', filepath.join( 'examples', 'hot_reload')){
|
||||
exit(1)
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user