()
| 35 | ) |
| 36 | |
| 37 | func init() { |
| 38 | app.Flags = append(app.Flags, Flags...) |
| 39 | app.Before = func(ctx *cli.Context) error { |
| 40 | return Setup(ctx) |
| 41 | } |
| 42 | // Add subcommands. |
| 43 | app.Commands = []*cli.Command{ |
| 44 | apiCommand, |
| 45 | crawlerCommand, |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | func main() { |
| 50 | err := app.Run(os.Args) |