@@ -12,13 +12,12 @@ import (
1212)
1313
1414func createRootCommand (cfg * config.ExportConfig , log * zap.SugaredLogger ) * cobra.Command {
15-
1615 // rootCmd represents the base command when called without any subcommands
17- var rootCmd = & cobra.Command {
16+ rootCmd : = & cobra.Command {
1817 Use : "export-service" ,
1918 }
2019
21- var expiredExportCleanerCmd = & cobra.Command {
20+ expiredExportCleanerCmd : = & cobra.Command {
2221 Use : "expired_export_cleaner" ,
2322 Short : "Run the expired export cleaner" ,
2423 Run : func (cmd * cobra.Command , args []string ) {
@@ -28,7 +27,7 @@ func createRootCommand(cfg *config.ExportConfig, log *zap.SugaredLogger) *cobra.
2827
2928 rootCmd .AddCommand (expiredExportCleanerCmd )
3029
31- var apiServerCmd = & cobra.Command {
30+ apiServerCmd : = & cobra.Command {
3231 Use : "api_server" ,
3332 Short : "Run the api server" ,
3433 Run : func (cmd * cobra.Command , args []string ) {
@@ -38,13 +37,13 @@ func createRootCommand(cfg *config.ExportConfig, log *zap.SugaredLogger) *cobra.
3837
3938 rootCmd .AddCommand (apiServerCmd )
4039
41- var migrateDbCmd = & cobra.Command {
40+ migrateDbCmd : = & cobra.Command {
4241 Use : "migrate_db" ,
4342 Short : "Run the db migration" ,
4443 }
4544
4645 // upCmd represents the up command
47- var upCmd = & cobra.Command {
46+ upCmd : = & cobra.Command {
4847 Use : "upgrade" ,
4948 Short : "Upgrade to a later version" ,
5049 RunE : func (cmd * cobra.Command , args []string ) error {
@@ -54,7 +53,7 @@ func createRootCommand(cfg *config.ExportConfig, log *zap.SugaredLogger) *cobra.
5453 }
5554
5655 // downCmd represents the down command
57- var downCmd = & cobra.Command {
56+ downCmd : = & cobra.Command {
5857 Use : "downgrade" ,
5958 Short : "Revert to a previous version" ,
6059 RunE : func (cmd * cobra.Command , args []string ) error {
0 commit comments