run in daemon mode by default

pull/2/head
Earl Warren 2023-03-09 18:40:19 +01:00
parent 1bb87d0ebb
commit 132b318d8b
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ func Execute(ctx context.Context) {
Args: cobra.MaximumNArgs(1), Args: cobra.MaximumNArgs(1),
Version: version, Version: version,
SilenceUsage: true, SilenceUsage: true,
RunE: runDaemon(ctx, gArgs.EnvFile),
} }
rootCmd.PersistentFlags().StringVarP(&gArgs.EnvFile, "env-file", "", ".env", "Read in a file of environment variables.") rootCmd.PersistentFlags().StringVarP(&gArgs.EnvFile, "env-file", "", ".env", "Read in a file of environment variables.")