commit 1ed0b0b2017be6feea6ccdc1fde8887943a0ef60 Author: Jan Bader Date: Sat Sep 16 17:08:18 2017 +0200 Initial diff --git a/main.go b/main.go new file mode 100644 index 0000000..2368528 --- /dev/null +++ b/main.go @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "os" +) + +func main() { + args := os.Args[1:] + if len(args) == 0 { + fmt.Println("No action specified") + return + } + + switch args[0] { + case "removesuffix": + fallthrough + case "rs": + suffix := args[1] + break + default: + fmt.Println("Invalid action specified") + return + } +}