Output.print(description);
Map<String, String> wrkIds = new HashMap<String, String>(1, 1.0f);
String wrkId = "wrk1";
switch (type) {
case Board:
Board board = RestTemplate.post(url, new TypeReference<Board>() { });
if (board == null) {
Output.print("^red^Invalid id or insufficient privileges.^r^");
break;
}
wrkIds.put(wrkId, String.format("b:%s", board.getId()));
Output.print(" ^b^%s^r^ ^black^| %s^r^", board.getName(), wrkId);
Output.print(" ^black^%s^r^", board.getUrl());
return wrkIds;
case List:
net.ocheyedan.wrk.trello.List list = RestTemplate.post(url, new TypeReference<net.ocheyedan.wrk.trello.List>() { });
if (list == null) {
Output.print("^red^Invalid id or insufficient privileges.^r^");