Skip to content

Commit e9cb39e

Browse files
committed
创建项目
1 parent 7c9b137 commit e9cb39e

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
*.class
2+
*.iml
3+
*.log
24
.idea
35

46
# Mobile Tools for Java (J2ME)
@@ -11,3 +13,4 @@
1113

1214
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
1315
hs_err_pid*
16+
target/

src/main/java/com/javabaas/shell/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ public static void main(String[] args) throws IOException {
1313
Bootstrap.main(args);
1414
}
1515

16-
}
16+
}

src/main/java/com/javabaas/shell/commands/AppCommands.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public void add(@CliOption(key = {""}, mandatory = true) final String name) {
6161
field.put("name", name);
6262
rest.postForObject(properties.getHost() + "admin/app/", field, String.class);
6363
System.out.println(Ansi.ansi().fg(Ansi.Color.GREEN).a("App added.").reset());
64+
set(name);
6465
} catch (HttpClientErrorException e) {
6566
System.out.println(Ansi.ansi().fg(Ansi.Color.RED).a(e.getResponseBodyAsString()).reset());
6667
}

0 commit comments

Comments
 (0)