Skip to content
Snippets Groups Projects
Commit 305ccd25 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

fix syntax problems

parent 58422958
Branches
Tags
3 merge requests!510Release,!267Make BuildReceptionIdentity public, and make backup restore function return a...,!263Hotfix/refactor cmd
...@@ -8,6 +8,10 @@ package cmd ...@@ -8,6 +8,10 @@ package cmd
import ( import (
"encoding/json" "encoding/json"
"io/fs"
"io/ioutil"
"os"
"github.com/pkg/errors" "github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/viper" "github.com/spf13/viper"
...@@ -15,9 +19,6 @@ import ( ...@@ -15,9 +19,6 @@ import (
"gitlab.com/elixxir/client/xxdk" "gitlab.com/elixxir/client/xxdk"
backupCrypto "gitlab.com/elixxir/crypto/backup" backupCrypto "gitlab.com/elixxir/crypto/backup"
"gitlab.com/xx_network/primitives/utils" "gitlab.com/xx_network/primitives/utils"
"io/fs"
"io/ioutil"
"os"
) )
// loadOrInitBackup will build a new xxdk.E2e from existing storage // loadOrInitBackup will build a new xxdk.E2e from existing storage
...@@ -50,7 +51,7 @@ func loadOrInitBackup(backupPath string, backupPass string, password []byte, sto ...@@ -50,7 +51,7 @@ func loadOrInitBackup(backupPath string, backupPass string, password []byte, sto
} }
// Construct client from backup data // Construct client from backup data
backupIdList, _, err := backup.NewClientFromBackup(string(ndfJson), storeDir, _, backupIdList, _, err := backup.NewClientFromBackup(string(ndfJson), storeDir,
password, []byte(backupPass), backupFile) password, []byte(backupPass), backupFile)
if err != nil { if err != nil {
jww.FATAL.Panicf("%+v", err) jww.FATAL.Panicf("%+v", err)
......
...@@ -9,19 +9,17 @@ ...@@ -9,19 +9,17 @@
package cmd package cmd
import ( import (
<<<<<<< HEAD
"fmt" "fmt"
======= "io/fs"
"io/ioutil"
"os"
"github.com/pkg/errors" "github.com/pkg/errors"
>>>>>>> origin/hotfix/RefactorCMD
"github.com/spf13/cobra" "github.com/spf13/cobra"
jww "github.com/spf13/jwalterweatherman" jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/viper" "github.com/spf13/viper"
"gitlab.com/elixxir/client/xxdk" "gitlab.com/elixxir/client/xxdk"
"io/fs"
"io/ioutil"
"os"
) )
// initCmd creates a new user object with the given NDF // initCmd creates a new user object with the given NDF
...@@ -61,7 +59,7 @@ var initCmd = &cobra.Command{ ...@@ -61,7 +59,7 @@ var initCmd = &cobra.Command{
writeContact(identity.GetContact()) writeContact(identity.GetContact())
// NOTE: DO NOT REMOVE THIS LINE. YOU WILL BREAK INTEGRATION // NOTE: DO NOT REMOVE THIS LINE. YOU WILL BREAK INTEGRATION
fmt.Printf("%s\n", receptionIdentity.ID) fmt.Printf("%s\n", identity.ID)
}, },
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment