|
@@ -1,5 +1,4 @@
|
1
|
1
|
import com.fasterxml.jackson.core.type.TypeReference;
|
2
|
|
-import com.fasterxml.jackson.databind.JavaType;
|
3
|
2
|
|
4
|
3
|
import java.io.BufferedReader;
|
5
|
4
|
import java.io.IOException;
|
|
@@ -94,16 +93,9 @@ public class SimpleShell {
|
94
|
93
|
// ids
|
95
|
94
|
if (list.get(0).equals("ids")) {
|
96
|
95
|
if (list.size() == 3) {
|
97
|
|
-// String userName = list.get(1);
|
98
|
|
-// String gitHub = list.get(2);
|
99
|
|
-// String payload = Mapper.mapper.writeValueAsString(new Id(userName, gitHub));
|
100
|
|
-// YouAreEll.MakeURLCall("/ids", "POST", payload);
|
101
|
96
|
new Thread(new IdController(IdCommand.POST_ID,commandLine)).start();
|
102
|
97
|
} else if (list.size() == 1) {
|
103
|
|
-// String results = YouAreEll.get_ids();
|
104
|
|
-// SimpleShell.prettyPrint(results, ObjectType.ID);
|
105
|
|
- new Thread(new IdController(IdCommand.GETALL)).start();
|
106
|
|
-
|
|
98
|
+ new Thread(new IdController(IdCommand.GET_ALL)).start();
|
107
|
99
|
} else System.out.println("Invalid Command");
|
108
|
100
|
continue;
|
109
|
101
|
}
|