aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-13 15:24:47 +0200
committerFlorian Dold <florian@dold.me>2022-10-13 15:24:47 +0200
commitca8da4ed380b308abdc894145c7e1a102bfd6cf0 (patch)
tree876ed35c7bd5f4c75967885d36eb3a3eecd06307 /packages/taler-wallet-cli
parent83d4a1addc313f71a71463f7811f1fcc622b51b6 (diff)
wallet-core: only allow enabling dev mode via separate request
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r--packages/taler-wallet-cli/src/index.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts
index 6ae78bd47..941a2f28f 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -1018,6 +1018,30 @@ advancedCli
});
});
+advancedCli
+ .subcommand("enableDevMode", "enable-dev-mode", {
+ help: "Enable developer mode (dangerous!)",
+ })
+ .action(async (args) => {
+ await withWallet(args, async (wallet) => {
+ await wallet.client.call(WalletApiOperation.SetDevMode, {
+ devModeEnabled: true,
+ });
+ });
+ });
+
+advancedCli
+ .subcommand("disableDevMode", "disable-dev-mode", {
+ help: "Disable developer mode",
+ })
+ .action(async (args) => {
+ await withWallet(args, async (wallet) => {
+ await wallet.client.call(WalletApiOperation.SetDevMode, {
+ devModeEnabled: false,
+ });
+ });
+ });
+
const coinPubListCodec = codecForList(codecForString());
advancedCli