vcreate: Allow custom default license (#14046)

master
Cameron Katri 2022-04-16 10:43:25 -04:00 committed by GitHub
parent 8a57f7ed2d
commit 1fc54a1e5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ fn create(args []string) {
if c.version == '' { if c.version == '' {
c.version = default_version c.version = default_version
} }
default_license := 'MIT' default_license := os.getenv_opt('VLICENSE') or {'MIT'}
c.license = os.input('Input your project license: ($default_license) ') c.license = os.input('Input your project license: ($default_license) ')
if c.license == '' { if c.license == '' {
c.license = default_license c.license = default_license