gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-wallet-core] 01/03: rudimentary history command


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-core] 01/03: rudimentary history command
Date: Wed, 04 Sep 2019 15:28:26 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

commit 604a74007d559258e6630144a6293c351735d15d
Author: Florian Dold <address@hidden>
AuthorDate: Wed Sep 4 14:28:22 2019 +0200

    rudimentary history command
---
 src/headless/taler-wallet-cli.ts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/headless/taler-wallet-cli.ts b/src/headless/taler-wallet-cli.ts
index da68f46a..f1034636 100644
--- a/src/headless/taler-wallet-cli.ts
+++ b/src/headless/taler-wallet-cli.ts
@@ -77,6 +77,22 @@ program
     process.exit(0);
   });
 
+
+program
+  .command("history")
+  .description("show wallet history")
+  .action(async () => {
+    applyVerbose(program.verbose);
+    console.log("history command called");
+    const wallet = await getDefaultNodeWallet({
+      persistentStoragePath: walletDbPath,
+    });
+    console.log("got wallet");
+    const history = await wallet.getHistory();
+    console.log(JSON.stringify(history, undefined, 2));
+    process.exit(0);
+  });
+
 async function asyncSleep(milliSeconds: number): Promise<void> {
   return new Promise<void>((resolve, reject) => {
     setTimeout(() => resolve(), milliSeconds);

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]