Initial
This commit is contained in:
commit
1ed0b0b201
25
main.go
Normal file
25
main.go
Normal 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
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user