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

@ -32,7 +32,7 @@ var restoreCmd = &cobra.Command{
Short: "Restores all vikunja data from a vikunja dump.",
Args: cobra.ExactArgs(1),
PreRun: func(cmd *cobra.Command, args []string) {
initialize.FullInit()
initialize.FullInitWithoutAsync()
},
Run: func(cmd *cobra.Command, args []string) {
if err := dump.Restore(args[0]); err != nil {