anchor.diff:                    Process.run("git", ["push", "https://$token@github.com/$repouser/$gitname.git", "master"], options).then((p) {
                       print(p.stdout);
                       print("Library $gitname updated successfully.");
  -                    completer.complete(true);
  +                    if (pubserver != null) {
  +                      print("Publishing library to pub");
  +                      Process.start("pub", ["publish", "--server==$pubserver"]).then((p) {
  +                        p.stdout.pipe(stdout);
  +                        p.onExit = (code) {
  +                          p.stdout.close();
  +                          completer.complete(true);
  +                        };
  +                      });
  +                    } else {
  +                      completer.complete(true);
  +                    }
                     });
                   });
                 });
  
positive.code:   if (result["force"] != null && result["force"] == true) {
      force = true;
    }
  
    if (result["limit"] != null) limit = int.parse(result["limit"]);
    prefix = result["prefix"];
  
negative.code: String token;
  String outputdir;
  String prefix;
  String pubserver;
  bool force = false;
  int limit;
  
  