Skip to content

Commit

Permalink
✨ add commands
Browse files Browse the repository at this point in the history
  • Loading branch information
budougumi0617 committed Sep 23, 2020
1 parent 8ee3768 commit 4ed7f66
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const (
LIST = "list"
PICK = "pick"
GENERATE = "generate"
TEST = "test"
EXEC = "exec"
)

func main() {
Expand All @@ -37,7 +39,6 @@ func main() {
switch sub {
case LIST:
if err := leetgode.ListCmd(ctx); err != nil {
// TODO: ソートする!!
fmt.Printf("failed ListCmd: %v\n", err)
os.Exit(1)
}
Expand All @@ -63,6 +64,10 @@ func main() {
fmt.Printf("failed GenerateCmd(ctx, %q): %v\n", args[1], err)
os.Exit(1)
}
// test Test question by id [aliases: t]
case TEST:
// exec Submit solution [aliases: x]
case EXEC:
default:
fmt.Printf("invalid sub command %q\n", sub)
os.Exit(1)
Expand Down

0 comments on commit 4ed7f66

Please sign in to comment.