Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(template)!: set no open source license value to 0 #60

Merged
merged 5 commits into from
Feb 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/gotemplate/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,17 +257,17 @@ The default points to "github.com" but for devops for example it would look sth.
description: StringValue(`Set an OpenSource license.
Unsure which to pick? Checkout Github's https://choosealicense.com/
Options:
0: Add no license
1: MIT License
2: Apache License 2.0
3: GNU AGPLv3
4: GNU GPLv3
5: GNU LGPLv3
6: Mozilla Public License 2.0
7: Boost Software License 1.0
8: The Unlicense
9: Add no license`),
8: The Unlicense`),
postHook: func(v interface{}, _ *OptionValues, targetDir string) error {
if v.(int) == 9 {
if v.(int) == 0 {
return os.RemoveAll(path.Join(targetDir, "LICENSE"))
}
return nil
Expand Down