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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user