diff options
author | Florian Dold <florian@dold.me> | 2022-09-20 21:44:21 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-20 23:17:42 +0200 |
commit | 16a5bb40834c01e50e84144bb644517e67a66187 (patch) | |
tree | f6e7167aca608316ad03cf1e0debdb65eabe02cc /packages/taler-wallet-cli/src/index.ts | |
parent | 52ec740c825d4e94fd59ef0a5cd8e8b73f4dfc06 (diff) | |
download | wallet-core-16a5bb40834c01e50e84144bb644517e67a66187.tar.xz |
wallet-core: make basic backup work again
Diffstat (limited to 'packages/taler-wallet-cli/src/index.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 31e0b0f65..8fd0de642 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -887,6 +887,26 @@ currenciesCli }); advancedCli + .subcommand("clearDatabase", "clear-database", { + help: "Clear the database, irrevocable deleting all data in the wallet.", + }) + .action(async (args) => { + await withWallet(args, async (wallet) => { + await wallet.client.call(WalletApiOperation.ClearDb, {}); + }); + }); + +advancedCli + .subcommand("recycle", "recycle", { + help: "Export, clear and re-import the database via the backup mechamism.", + }) + .action(async (args) => { + await withWallet(args, async (wallet) => { + await wallet.client.call(WalletApiOperation.Recycle, {}); + }); + }); + +advancedCli .subcommand("payPrepare", "pay-prepare", { help: "Claim an order but don't pay yet.", }) |