diff options
author | Sebastian <sebasjm@gmail.com> | 2021-07-16 10:12:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-07-16 10:12:22 -0300 |
commit | 2b9686ccc69d39140d83efe0bfc6ebb2b77ff140 (patch) | |
tree | e7eaa55ff80264b0f9a7fd4507006f6c89c866e2 /packages/taler-wallet-cli | |
parent | 6d3db4ce6ce3119f299936d9f0e4052bf1eff6c7 (diff) | |
download | wallet-core-2b9686ccc69d39140d83efe0bfc6ebb2b77ff140.tar.xz |
added missing implementation in wallet cli
Diffstat (limited to 'packages/taler-wallet-cli')
3 files changed, 5 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index ddcf6a645..ab807cbb7 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -577,12 +577,14 @@ backupCli backupCli .subcommand("addProvider", "add-provider") .requiredArgument("url", clk.STRING) + .maybeArgument("name", clk.STRING) .flag("activate", ["--activate"]) .action(async (args) => { await withWallet(args, async (wallet) => { await wallet.client.call(WalletApiOperation.AddBackupProvider, { backupProviderBaseUrl: args.addProvider.url, activate: args.addProvider.activate, + name: args.addProvider.name || args.addProvider.url, }); }); }); diff --git a/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-basic.ts b/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-basic.ts index 3342a560b..7debfe6b6 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-basic.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-basic.ts @@ -53,6 +53,7 @@ export async function runWalletBackupBasicTest(t: GlobalTestState) { await wallet.client.call(WalletApiOperation.AddBackupProvider, { backupProviderBaseUrl: sync.baseUrl, activate: false, + name: sync.baseUrl, }); { @@ -63,6 +64,7 @@ export async function runWalletBackupBasicTest(t: GlobalTestState) { await wallet.client.call(WalletApiOperation.AddBackupProvider, { backupProviderBaseUrl: sync.baseUrl, activate: true, + name: sync.baseUrl, }); { diff --git a/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts b/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts index 7d3c5f6dc..ab2687fc3 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts @@ -58,6 +58,7 @@ export async function runWalletBackupDoublespendTest(t: GlobalTestState) { await wallet.client.call(WalletApiOperation.AddBackupProvider, { backupProviderBaseUrl: sync.baseUrl, activate: true, + name: sync.baseUrl, }); await withdrawViaBank(t, { wallet, bank, exchange, amount: "TESTKUDOS:10" }); |