26 lines
305 B
Go
26 lines
305 B
Go
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
|
|
}
|
|
}
|