Make multi-line bash command copy/pastable from rendered md

This commit is contained in:
ghubstan 2021-03-18 14:20:47 -03:00
parent 514e7b74ce
commit f732983d6c
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -46,27 +46,27 @@ $ ./gradlew clean build :apitest:installDaoSetup # if you want to run
If your bitcoin-core binaries are in your system `PATH`, start bitcoind in regtest-mode, Bisq seednode and arbitration If your bitcoin-core binaries are in your system `PATH`, start bitcoind in regtest-mode, Bisq seednode and arbitration
node daemons, plus Bob & Alice daemons in a bash terminal with the following bash command: node daemons, plus Bob & Alice daemons in a bash terminal with the following bash command:
``` ```
$ ./bisq-apitest --apiPassword=xyz $ ./bisq-apitest --apiPassword=xyz \
--supportingApps=bitcoind,seednode,arbdaemon,alicedaemon,bobdaemon --supportingApps=bitcoind,seednode,arbdaemon,alicedaemon,bobdaemon \
--shutdownAfterTests=false --shutdownAfterTests=false
``` ```
If your bitcoin-core binaries are not in your system `PATH`, you can specify the bitcoin-core bin directory with the If your bitcoin-core binaries are not in your system `PATH`, you can specify the bitcoin-core bin directory with the
`-bitcoinPath=<path>` option: `-bitcoinPath=<path>` option:
``` ```
$ ./bisq-apitest --apiPassword=xyz $ ./bisq-apitest --apiPassword=xyz \
--supportingApps=bitcoind,seednode,arbdaemon,alicedaemon,bobdaemon --supportingApps=bitcoind,seednode,arbdaemon,alicedaemon,bobdaemon \
--shutdownAfterTests=false --shutdownAfterTests=false \
--bitcoinPath=<bitcoin-core-home>/bin --bitcoinPath=<bitcoin-core-home>/bin
``` ```
If your bitcoin-core binaries are not statically linked to your BerkleyDB library, you can specify the path to it If your bitcoin-core binaries are not statically linked to your BerkleyDB library, you can specify the path to it
with the `-berkeleyDbLibPath=<path>` option: with the `-berkeleyDbLibPath=<path>` option:
``` ```
$ ./bisq-apitest --apiPassword=xyz $ ./bisq-apitest --apiPassword=xyz \
--supportingApps=bitcoind,seednode,arbdaemon,alicedaemon,bobdaemon --supportingApps=bitcoind,seednode,arbdaemon,alicedaemon,bobdaemon \
--shutdownAfterTests=false --shutdownAfterTests=false \
--bitcoinPath=<bitcoin-core-home>/bin --bitcoinPath=<bitcoin-core-home>/bin \
--berkeleyDbLibPath=<lib-berkleydb-path> --berkeleyDbLibPath=<lib-berkleydb-path>
``` ```
@ -163,10 +163,10 @@ manually register dispute agents in the arbitration node before you can initiate
the following CLI commands to register a `mediator` and a `refundagent`. Do not change the commands' port `9997` the following CLI commands to register a `mediator` and a `refundagent`. Do not change the commands' port `9997`
option (the test arbitration node's listening port). option (the test arbitration node's listening port).
``` ```
$ ./bisq-cli --password=xyz --port=9997 registerdisputeagent --dispute-agent-type=mediator $ ./bisq-cli --password=xyz --port=9997 registerdisputeagent --dispute-agent-type=mediator \
--registration-key=6ac43ea1df2a290c1c8391736aa42e4339c5cb4f110ff0257a13b63211977b7a --registration-key=6ac43ea1df2a290c1c8391736aa42e4339c5cb4f110ff0257a13b63211977b7a
$ ./bisq-cli --password=xyz --port=9997 registerdisputeagent --dispute-agent-type=refundagent $ ./bisq-cli --password=xyz --port=9997 registerdisputeagent --dispute-agent-type=refundagent \
--registration-key=6ac43ea1df2a290c1c8391736aa42e4339c5cb4f110ff0257a13b63211977b7a --registration-key=6ac43ea1df2a290c1c8391736aa42e4339c5cb4f110ff0257a13b63211977b7a
``` ```
_Note: The API cannot be used to register dispute agents on nodes connected to `mainnet`._ _Note: The API cannot be used to register dispute agents on nodes connected to `mainnet`._
@ -203,7 +203,7 @@ $ ./bisq-cli --password=xyz setwalletpassword --wallet-password=<wallet-password
Set a new password on your already encrypted wallet: Set a new password on your already encrypted wallet:
``` ```
$ ./bisq-cli --password=xyz setwalletpassword --wallet-password=<wallet-password> $ ./bisq-cli --password=xyz setwalletpassword --wallet-password=<wallet-password> \
--new-wallet-password=<new-wallet-password> --new-wallet-password=<new-wallet-password>
``` ```
@ -336,7 +336,7 @@ Creating a payment account using the Api involves three steps:
3. Manually edit the json file, and use its path in the `createpaymentacct` command. 3. Manually edit the json file, and use its path in the `createpaymentacct` command.
``` ```
$ ./bisq-cli --password=xyz --port=9998 createpaymentacct $ ./bisq-cli --password=xyz --port=9998 createpaymentacct \
--payment-account-form=f2f_1612381824625.json --payment-account-form=f2f_1612381824625.json
``` ```
_Note: You can rename the file before passing it to the `createpaymentacct` command._ _Note: You can rename the file before passing it to the `createpaymentacct` command._
@ -363,26 +363,26 @@ In a previous example, Alice created a BUY/ EUR offer to buy 0.125 BTC at a fixe
and pay the Bisq maker fee in BSQ. Alice had already created an EUR face-to-face payment account with id and pay the Bisq maker fee in BSQ. Alice had already created an EUR face-to-face payment account with id
`f3c1ec8b-9761-458d-b13d-9039c6892413`, and used this `createoffer` command: `f3c1ec8b-9761-458d-b13d-9039c6892413`, and used this `createoffer` command:
``` ```
$ ./bisq-cli --password=xyz --port=9998 createoffer $ ./bisq-cli --password=xyz --port=9998 createoffer \
--payment-account=f3c1ec8b-9761-458d-b13d-9039c6892413 --payment-account=f3c1ec8b-9761-458d-b13d-9039c6892413 \
--direction=BUY --direction=BUY \
--currency-code=EUR --currency-code=EUR \
--amount=0.125 --amount=0.125 \
--fixed-price=30800 --fixed-price=30800 \
--security-deposit=15.0 --security-deposit=15.0 \
--fee-currency=BSQ --fee-currency=BSQ
``` ```
If Alice was in Japan, and wanted to create an offer to sell 0.125 BTC at 0.5% above the current market JPY price, If Alice was in Japan, and wanted to create an offer to sell 0.125 BTC at 0.5% above the current market JPY price,
putting up a 15% security deposit, the `createoffer` command to do that would be: putting up a 15% security deposit, the `createoffer` command to do that would be:
``` ```
$ ./bisq-cli --password=xyz --port=9998 createoffer $ ./bisq-cli --password=xyz --port=9998 createoffer \
--payment-account=f3c1ec8b-9761-458d-b13d-9039c6892413 --payment-account=f3c1ec8b-9761-458d-b13d-9039c6892413 \
--direction=SELL --direction=SELL \
--currency-code=JPY --currency-code=JPY \
--amount=0.125 --amount=0.125 \
--market-price-margin=0.5 --market-price-margin=0.5 \
--security-deposit=15.0 --security-deposit=15.0 \
--fee-currency=BSQ --fee-currency=BSQ
``` ```
@ -442,9 +442,9 @@ $ ./bisq-cli --password=xyz --port=9998 getoffers --direction=SELL --currency-c
And takes one of the available offers with an EUR payment account ( id `fe20cdbd-22be-4b8a-a4b6-d2608ff09d6e`) And takes one of the available offers with an EUR payment account ( id `fe20cdbd-22be-4b8a-a4b6-d2608ff09d6e`)
with the `takeoffer` command: with the `takeoffer` command:
``` ```
$ ./bisq-cli --password=xyz --port=9998 takeoffer $ ./bisq-cli --password=xyz --port=9998 takeoffer \
--offer-id=83e8b2e2-51b6-4f39-a748-3ebd29c22aea --offer-id=83e8b2e2-51b6-4f39-a748-3ebd29c22aea \
--payment-account=fe20cdbd-22be-4b8a-a4b6-d2608ff09d6e --payment-account=fe20cdbd-22be-4b8a-a4b6-d2608ff09d6e \
--fee-currency=btc --fee-currency=btc
``` ```
The taken offer will be used to create a trade contract. The next section describes how to use the Api to execute The taken offer will be used to create a trade contract. The next section describes how to use the Api to execute