package se.soy.gpg;

public class GPG {
  // FIXME Remove when done
  static<T> void println(T arg) { System.out.println(arg); }

  public static void main(String[] args) {
    println("main");
    GPG.encrypt().armor().recipient("0xrecipient").output();
    /*
    GPG.encrypt().armor().recipient("0xrecipient").output();
    GPG.decrypt().armor().local-user("0xlocaluser").output("/tmp/a-file");
    GPG.sign().armor().();
    */
  }
  private boolean armor = false;
  private String recipient;

  public void output() {
    println("OPTIONS:");
    println(String.format("armor?: %s", (armor) ? "true" : "false"));
    println(String.format("recipient?: %s", recipient));
  }

  public static GPG encrypt() {
    GPG gpg = new GPG();
    println("encrypt()");
    return gpg;
  }

  public GPG armor() {
    this.armor = true;
    return this;
  }

  public GPG recipient(String recipient) {
    this.recipient = recipient;
    return this;
  }
}

@@ -14,16 +14,68 @@
 y.gpg;%0A%0A
+import java.util.List;%0Aimport java.util.ArrayList;%0A%0A
 public c
@@ -481,16 +481,17 @@
  */%0A  %7D%0A
+%0A
   privat
@@ -525,22 +525,28 @@
 private 
+List%3C
 String
+%3E
  recipie
@@ -547,16 +547,43 @@
 ecipient
+s = new ArrayList%3CString%3E()
 ;%0A%0A  pub
@@ -733,16 +733,17 @@
 ecipient
+s
 ?: %25s%22, 
@@ -751,16 +751,17 @@
 ecipient
+s
 ));%0A  %7D%0A
@@ -994,19 +994,22 @@
 ecipient
- = 
+s.add(
 recipien
@@ -1009,16 +1009,17 @@
 ecipient
+)
 ;%0A    re

Support multiple recipients