chore: remove short aliases
This commit is contained in:
6
main.go
6
main.go
@ -30,15 +30,11 @@ func main() {
|
|||||||
|
|
||||||
switch flag.Arg(0) {
|
switch flag.Arg(0) {
|
||||||
case "normalize":
|
case "normalize":
|
||||||
fallthrough
|
|
||||||
case "n":
|
|
||||||
err := filepath.Walk(*path, normalize)
|
err := filepath.Walk(*path, normalize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
case "removesuffix":
|
case "removesuffix":
|
||||||
fallthrough
|
|
||||||
case "rs":
|
|
||||||
suffix := flag.Arg(1)
|
suffix := flag.Arg(1)
|
||||||
err := filepath.Walk(*path, removeSuffix(suffix))
|
err := filepath.Walk(*path, removeSuffix(suffix))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -46,8 +42,6 @@ func main() {
|
|||||||
}
|
}
|
||||||
removeSuffix(suffix)
|
removeSuffix(suffix)
|
||||||
case "unpack":
|
case "unpack":
|
||||||
fallthrough
|
|
||||||
case "up":
|
|
||||||
err := filepath.Walk(*path, unpack)
|
err := filepath.Walk(*path, unpack)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Reference in New Issue
Block a user