mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
vpm: simplify output for v list
(#13975)
This commit is contained in:
parent
60e718e7c6
commit
e3da3101f6
1 changed files with 2 additions and 3 deletions
|
@ -445,12 +445,11 @@ fn vpm_outdated() {
|
||||||
fn vpm_list() {
|
fn vpm_list() {
|
||||||
module_names := get_installed_modules()
|
module_names := get_installed_modules()
|
||||||
if module_names.len == 0 {
|
if module_names.len == 0 {
|
||||||
println('You have no modules installed.')
|
eprintln('You have no modules installed.')
|
||||||
exit(0)
|
exit(0)
|
||||||
}
|
}
|
||||||
println('Installed modules:')
|
|
||||||
for mod in module_names {
|
for mod in module_names {
|
||||||
println(' $mod')
|
println(mod)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue