Skip to content

Commit

Permalink
refactor(template)!: set no open source license value to 0 (#60)
Browse files Browse the repository at this point in the history
* Set no licence to 0

Signed-off-by: Steffen Exler <[email protected]>
  • Loading branch information
linuxluigi authored Feb 4, 2022
1 parent 6c0a7db commit 7068303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/gotemplate/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,17 +259,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

0 comments on commit 7068303

Please sign in to comment.