commit 412c227ee2c091282bed3d39b0f4c92e47936435
parent c2737b007e64def9d838fad0f7b34479d8778af5
Author: Iván Ávalos <avalos@disroot.org>
Date: Fri, 28 Jun 2024 12:04:31 -0600
Add daemon CLI slide to wallet.tex
Diffstat:
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/workshops/wallet.tex b/workshops/wallet.tex
@@ -380,7 +380,6 @@ $ taler-wallet-cli run-until-done # run until all work is done
\begin{frame}[fragile]{Wallet-core CLI}
- \vfill
It is also possible to call wallet-core API requests directly from the
CLI, even when there is not a command for it:
@@ -393,6 +392,28 @@ $ taler-wallet-cli api getWithdrawalDetailsForAmount \
\end{frame}
+\begin{frame}[fragile]{Wallet-core CLI}
+ By design, wallet-core CLI only performs background tasks during each
+ execution, and when it completes the requested action, it quits. However, it
+ is also possible to run it as a daemon and run commands in a client-server
+ fashion, as shown below:
+
+ \medskip
+
+ \textbf{Run the wallet as a daemon (in the foreground)}
+
+\begin{verbatim}
+$ taler-wallet-cli advanced serve
+\end{verbatim}
+
+ \textbf{Connect to the daemon and execute an action}
+
+\begin{verbatim}
+$ taler-wallet-cli --wallet-connection=$HOME/.wallet-core.sock ...
+\end{verbatim}
+\end{frame}
+
+
\begin{frame}{Hacking on wallet-core}{Important files}
{\small
\begin{itemize}