This commit is contained in:
Jan Bader 2017-09-16 17:08:18 +02:00
commit 1ed0b0b201

25
main.go Normal file
View File

@ -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
}
}