link to forked keyring and bring back vault command

This commit is contained in:
Maidul Islam
2023-08-17 15:07:12 -04:00
parent 49bcd8839f
commit ddc7be18eb
11 changed files with 214 additions and 111 deletions

View File

@@ -18,6 +18,12 @@ var resetCmd = &cobra.Command{
Example: "infisical reset",
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
// delete keyring item of current logged in user
configFile, _ := util.GetConfigFile()
// delete from keyring
util.DeleteValueInKeyring(configFile.LoggedInUserEmail)
// delete config
_, pathToDir, err := util.GetFullConfigFilePath()
if err != nil {