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

vpm: addd a show command (#10186)

This commit is contained in:
Pranav Baburaj
2021-05-24 17:47:57 +05:30
committed by GitHub
parent 13d1d28db1
commit da88235bdc
2 changed files with 49 additions and 1 deletions

View File

@@ -21,6 +21,10 @@ fn cerror(e string) {
}
fn check_name(name string) string {
if name.trim_space().len == 0 {
cerror('project name cannot be empty')
exit(1)
}
if name.is_title() {
mut cname := name.to_lower()
if cname.contains(' ') {
@@ -157,6 +161,7 @@ fn init_project() {
c.write_vmod(false)
c.write_main(false)
c.create_git_repo('')
println("Change your module's description in `v.mod`")
}