1
0

fix(cmd): do not initialize asnyc operations when running certain cli commands

This commit is contained in:
kolaente
2023-09-04 11:22:50 +02:00
parent f38535b2f4
commit c28d1af877
4 changed files with 13 additions and 8 deletions

View File

@ -33,7 +33,7 @@ var dumpCmd = &cobra.Command{
Use: "dump",
Short: "Dump all vikunja data into a zip file. Includes config, files and db.",
PreRun: func(cmd *cobra.Command, args []string) {
initialize.FullInit()
initialize.FullInitWithoutAsync()
},
Run: func(cmd *cobra.Command, args []string) {
filename := "vikunja-dump_" + time.Now().Format("2006-01-02_15-03-05") + ".zip"