mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-15 07:43:27 +00:00
added clear cache to menu option 9
This commit is contained in:
@@ -62,7 +62,8 @@ namespace Bit.Console
|
|||||||
Con.WriteLine("6. Sync directory");
|
Con.WriteLine("6. Sync directory");
|
||||||
Con.WriteLine("7. Control background service");
|
Con.WriteLine("7. Control background service");
|
||||||
Con.WriteLine("8. Configure environment");
|
Con.WriteLine("8. Configure environment");
|
||||||
Con.WriteLine("9. Exit");
|
Con.WriteLine("9. Clear sync cache");
|
||||||
|
Con.WriteLine("10. Exit");
|
||||||
Con.WriteLine();
|
Con.WriteLine();
|
||||||
Con.Write("What would you like to do? ");
|
Con.Write("What would you like to do? ");
|
||||||
selection = Con.ReadLine();
|
selection = Con.ReadLine();
|
||||||
@@ -112,15 +113,16 @@ namespace Bit.Console
|
|||||||
await ConfigEnvironmentAsync();
|
await ConfigEnvironmentAsync();
|
||||||
break;
|
break;
|
||||||
case "9":
|
case "9":
|
||||||
|
case "cache":
|
||||||
|
case "clearcache":
|
||||||
|
await ClearCacheAsync();
|
||||||
|
break;
|
||||||
|
case "10":
|
||||||
case "exit":
|
case "exit":
|
||||||
case "quit":
|
case "quit":
|
||||||
case "q":
|
case "q":
|
||||||
_exit = true;
|
_exit = true;
|
||||||
break;
|
break;
|
||||||
case "cache":
|
|
||||||
case "clearcache":
|
|
||||||
await ClearCacheAsync();
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
Con.WriteLine("Unknown command.");
|
Con.WriteLine("Unknown command.");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user