Added gitignore. Force command arg to lower
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*.exe
|
||||||
|
*.csv
|
||||||
4
godo.go
4
godo.go
@@ -5,6 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -13,6 +14,7 @@ func main() {
|
|||||||
fmt.Println("Use godo ? or help for the help menu")
|
fmt.Println("Use godo ? or help for the help menu")
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
args[1] = strings.ToLower(args[1])
|
||||||
|
|
||||||
switch args[1] {
|
switch args[1] {
|
||||||
case "?", "help":
|
case "?", "help":
|
||||||
@@ -23,6 +25,8 @@ func main() {
|
|||||||
list()
|
list()
|
||||||
case "d", "delete":
|
case "d", "delete":
|
||||||
delete(args[2])
|
delete(args[2])
|
||||||
|
default:
|
||||||
|
help()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user