-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcommands.go
41 lines (36 loc) · 926 Bytes
/
commands.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package main
import (
"context"
"github.com/urfave/cli/v2"
)
func commands(ctx context.Context) []*cli.Command {
const (
cmdRun = "run"
)
cmds := []*cli.Command{
{
Name: cmdRun,
Aliases: nil,
Usage: "Runs advent-of-code application",
UsageText: "",
Description: "",
ArgsUsage: "",
Category: "",
BashComplete: nil,
Before: nil,
After: nil,
Action: menu(ctx),
OnUsageError: nil,
Subcommands: nil,
Flags: cmdRunFlags(),
SkipFlagParsing: false,
HideHelp: false,
HideHelpCommand: false,
Hidden: false,
UseShortOptionHandling: false,
HelpName: "",
CustomHelpTemplate: "",
},
}
return cmds
}