1
0
mirror of https://github.com/bitwarden/directory-connector synced 2026-01-08 03:23:41 +00:00

clear cache command

This commit is contained in:
Kyle Spearrin
2017-05-19 09:02:25 -04:00
parent 440a9ed317
commit cbec918383

View File

@@ -120,6 +120,10 @@ namespace Bit.Console
case "q":
_exit = true;
break;
case "cache":
case "clearcache":
await ClearCacheAsync();
break;
default:
Con.WriteLine("Unknown command.");
break;
@@ -1004,6 +1008,16 @@ namespace Bit.Console
return Task.FromResult(0);
}
private static Task ClearCacheAsync()
{
SettingsService.Instance.GroupDeltaToken = null;
SettingsService.Instance.LastGroupSyncDate = null;
SettingsService.Instance.UserDeltaToken = null;
SettingsService.Instance.LastUserSyncDate = null;
SettingsService.Instance.LastSyncHash = null;
return Task.FromResult(0);
}
private static string ReadSecureLine()
{
var input = string.Empty;