v update: add verbose output (#6080)

pull/6086/head
Lukas Neubert 2020-08-07 17:33:13 +02:00 committed by GitHub
parent 55b8cc1bb2
commit 664c26ab4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -215,7 +215,7 @@ fn vpm_update(m []string) {
continue
}
vcs_cmd := supported_vcs_update_cmds[vcs[0]]
verbose_println(' command: $vcs_cmd')
verbose_println(' command: $vcs_cmd')
vcs_res := os.exec('$vcs_cmd') or {
errors++
println('Could not update module "$name".')
@ -229,6 +229,8 @@ fn vpm_update(m []string) {
verbose_println('Failed command: $vcs_cmd')
verbose_println('Failed details:\n$vcs_res.output')
continue
} else {
verbose_println(' $vcs_res.output.trim_space()')
}
resolve_dependencies(name, final_module_path, module_names)
}
@ -289,8 +291,9 @@ fn vpm_list() {
println('You have no modules installed.')
exit(0)
}
println('Installed modules:')
for mod in module_names {
println(mod)
println(' $mod')
}
}
@ -534,7 +537,8 @@ fn get_module_meta_info(name string) ?Mod {
continue
}
if r.status_code == 404 || r.text.contains('404') {
errors << 'Skipping module "$name", since $server_url reported that "$name" does not exist.'
errors <<
'Skipping module "$name", since $server_url reported that "$name" does not exist.'
continue
}
if r.status_code != 200 {