package bisq.cli;

import static java.lang.System.out;

/**
 Smoke tests for getoffers method.  Useful for examining the format of the console output.

 Prerequisites:

 - Run `./bisq-daemon --apiPassword=xyz --appDataDir=$TESTDIR`

 This can be run on mainnet.
 */
public class GetOffersSmokeTest {

    public static void main(String[] args) {

        out.println(">>> getoffers buy usd");
        CliMain.main(new String[]{"--password=xyz", "getoffers", "buy", "usd"});
        out.println(">>> getoffers sell usd");
        CliMain.main(new String[]{"--password=xyz", "getoffers", "sell", "usd"});

        out.println(">>> getoffers buy eur");
        CliMain.main(new String[]{"--password=xyz", "getoffers", "buy", "eur"});
        out.println(">>> getoffers sell eur");
        CliMain.main(new String[]{"--password=xyz", "getoffers", "sell", "eur"});

        out.println(">>> getoffers buy gbp");
        CliMain.main(new String[]{"--password=xyz", "getoffers", "buy", "gbp"});
        out.println(">>> getoffers sell gbp");
        CliMain.main(new String[]{"--password=xyz", "getoffers", "sell", "gbp"});

        out.println(">>> getoffers buy brl");
        CliMain.main(new String[]{"--password=xyz", "getoffers", "buy", "brl"});
        out.println(">>> getoffers sell brl");
        CliMain.main(new String[]{"--password=xyz", "getoffers", "sell", "brl"});
    }

}

@@ -452,23 +452,51 @@
 fers%22, %22
-buy%22, %22
+--direction=buy%22, %22--currency-code=
 usd%22%7D);%0A
@@ -608,24 +608,52 @@
 fers%22, %22
-sell%22, %22
+--direction=sell%22, %22--currency-code=
 usd%22%7D);%0A
@@ -765,23 +765,51 @@
 fers%22, %22
-buy%22, %22
+--direction=buy%22, %22--currency-code=
 eur%22%7D);%0A
@@ -921,24 +921,52 @@
 fers%22, %22
-sell%22, %22
+--direction=sell%22, %22--currency-code=
 eur%22%7D);%0A
@@ -1078,23 +1078,51 @@
 fers%22, %22
-buy%22, %22
+--direction=buy%22, %22--currency-code=
 gbp%22%7D);%0A
@@ -1234,24 +1234,52 @@
 fers%22, %22
-sell%22, %22
+--direction=sell%22, %22--currency-code=
 gbp%22%7D);%0A
@@ -1391,23 +1391,51 @@
 fers%22, %22
-buy%22, %22
+--direction=buy%22, %22--currency-code=
 brl%22%7D);%0A
@@ -1547,24 +1547,52 @@
 fers%22, %22
-sell%22, %22
+--direction=sell%22, %22--currency-code=
 brl%22%7D);%0A

Update cli getoffers smoke test to posix style opts