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

cmd/tools/vpm: improve v show (#10198)

This commit is contained in:
Enzo
2021-05-25 13:30:48 +02:00
committed by GitHub
parent 4217f05146
commit 0d25106b4d
4 changed files with 7 additions and 16 deletions

View File

@@ -582,22 +582,11 @@ Homepage: $module_meta_info.url
Downloads: $module_meta_info.nr_downloads
Installed: False
--------
')
')
continue
}
path := os.join_path(os.vmodules_dir(), module_name)
mod := vmod.from_file(os.join_path(path, 'v.mod')) or { continue }
// console_output := [
// 'Name: $mod.name',
// 'Version: $mod.version',
// 'Description: $mod.description',
// 'Homepage: $mod.repo_url',
// 'Author: $mod.author',
// 'License: $mod.license',
// 'Location: $path',
// 'Requires: ${mod.dependencies.join(', ')}',
// ].join('\n')
// println('${console_output}\n--------\n')
print('Name: $mod.name
Version: $mod.version
Description: $mod.description