taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit d805f3986b813bed2eb0eb71450028aa95b83db0
parent ec1de3f4afdde93c34ff579dd37bf7433527cfd2
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
Date:   Thu, 26 Nov 2020 01:00:54 -0500

add several backslash-newline-space to shell script fragment

Diffstat:
Mtaler-wallet.rst | 17+++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/taler-wallet.rst b/taler-wallet.rst @@ -1104,11 +1104,16 @@ The following example does a simple withdrawal recoup: $ coins=$(taler-wallet-cli --wallet-db=mydb.json advanced dump-coins) # Find coin we want to revoke - $ rc=$(echo "$coins" | jq -r '[.coins[] | select((.denom_value == "INTKUDOS:5"))][0] | .coin_pub') + $ rc=$(echo "$coins" | \ + jq -r '[.coins[] | select((.denom_value == "INTKUDOS:5"))][0] | .coin_pub') + # Find the denom - $ rd=$(echo "$coins" | jq -r '[.coins[] | select((.denom_value == "INTKUDOS:5"))][0] | .denom_pub_hash') + $ rd=$(echo "$coins" | \ + jq -r '[.coins[] | select((.denom_value == "INTKUDOS:5"))][0] | .denom_pub_hash') + # Find all other coins, which will be suspended - $ susp=$(echo "$coins" | jq --arg rc "$rc" '[.coins[] | select(.coin_pub != $rc) | .coin_pub]') + $ susp=$(echo "$coins" | \ + jq --arg rc "$rc" '[.coins[] | select(.coin_pub != $rc) | .coin_pub]') # The exchange revokes the denom $ taler-exchange-keyup -r $rd @@ -1125,7 +1130,11 @@ The following example does a simple withdrawal recoup: # Now we buy something, only the coins resulting from recouped will be # used, as other ones are suspended - $ taler-wallet-cli --wallet-db=mydb.json testing test-pay -m https://backend.int.taler.net/ -k sandbox -a "INTKUDOS:1" -s "foo" + $ taler-wallet-cli --wallet-db=mydb.json testing test-pay \ + -m https://backend.int.taler.net/ \ + -k sandbox \ + -a "INTKUDOS:1" \ + -s "foo" $ taler-wallet-cli --wallet-db=mydb.json run-until-done