1
0

Compare commits

..

3 Commits

Author SHA1 Message Date
1c700fdfdd
feat: add ISC template 2024-12-27 05:34:59 +01:00
c46b9c0dfa
feat: add MIT template 2024-12-27 05:34:45 +01:00
e0b80af961
feat: add initial version 2024-12-27 05:34:15 +01:00

View File

@ -89,13 +89,13 @@ func main() {
if *ListTemplates {
listTemplates()
os.Exit(0)
os.Exit(0)
}
if *License == "" {
fmt.Printf("Error: No license specified\n\nUse --license LICENSE\n\nAvailable licenses:\n")
listTemplates()
os.Exit(1)
os.Exit(1)
}
if *authorName == "" || *authorEmail == "" {
@ -122,7 +122,7 @@ func main() {
if errors.Is(err, NotSupportedError) {
fmt.Printf("Error: There is no '%s' license\n\nAvailable licenses:\n", *License)
listTemplates()
os.Exit(2)
os.Exit(2)
}
}
}