1
0

Compare commits

..

3 Commits

Author SHA1 Message Date
75c29b4ed4
feat: add ISC template 2024-12-27 05:45:13 +01:00
54b5760769
feat: add MIT template 2024-12-27 05:45:12 +01:00
11f177e53b
feat: add initial version 2024-12-27 05:45:06 +01:00

View File

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