1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vpm: simplify output for v list (#13975)

This commit is contained in:
pancake 2022-04-09 13:26:01 +02:00 committed by GitHub
parent 60e718e7c6
commit e3da3101f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -445,12 +445,11 @@ fn vpm_outdated() {
fn vpm_list() {
module_names := get_installed_modules()
if module_names.len == 0 {
println('You have no modules installed.')
eprintln('You have no modules installed.')
exit(0)
}
println('Installed modules:')
for mod in module_names {
println(' $mod')
println(mod)
}
}