mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v install: fix installing a single module
This commit is contained in:
parent
d526cfc205
commit
7957ec3186
@ -126,19 +126,19 @@ fn main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if 'install' in args {
|
if 'install' in args {
|
||||||
if args.len <= 3 {
|
if args.len < 3 {
|
||||||
println('usage: v install [module] [module] [...]')
|
println('usage: v install [module] [module] [...]')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
names := args.slice(2, args.len)
|
names := args.slice(2, args.len)
|
||||||
vroot := os.dir(os.executable())
|
vexec := os.executable()
|
||||||
vget := '$vroot/tools/vget'
|
vroot := os.dir(vexec)
|
||||||
|
vget := '$vroot/tools/vget'
|
||||||
if true {
|
if true {
|
||||||
//println('Building vget...')
|
//println('Building vget...')
|
||||||
os.chdir(vroot + '/tools')
|
os.chdir(vroot + '/tools')
|
||||||
vexec := os.args[0]
|
_ := os.exec('$vexec -o $vget vget.v') or {
|
||||||
_ := os.exec('$vexec vget.v') or {
|
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user