vcreate: Allow custom default license (#14046)

Cameron Katri 2022-04-16 10:43:25 -04:00 committed by Jef Roosens
parent 53fde9c812
commit a286129f4a
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ fn create(args []string) {
if c.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) ')
if c.license == '' {
c.license = default_license