(c *cli.Context)
| 60 | } |
| 61 | |
| 62 | func before(c *cli.Context) error { |
| 63 | configFile := c.String("config") |
| 64 | config.LoadEnv(configFile) |
| 65 | app.config = config.Parse() |
| 66 | app.database = datastore.New(app.config.Database) |
| 67 | return nil |
| 68 | } |
| 69 | |
| 70 | func after(c *cli.Context) error { |
| 71 | err := app.database.Close() |