package main import ( "fmt" "os" "strings" "github.com/gammons/todolist/todolist" ) func main() { if len(os.Args) <= 1 { usage() os.Exit(0) } input := strings.Join(os.Args[1:], " ") routeInput(os.Args[1], input) } func usage() { fmt.Println("usage") } func routeInput(command string, input string) { app := todolist.NewApp() switch { case command == "l" || command == "list": app.ListTodos(input) } }