Skip to content

Commit

Permalink
New commands all flag messages added
Browse files Browse the repository at this point in the history
  • Loading branch information
tanbirali committed Oct 10, 2024
1 parent e31b054 commit affa2d3
Showing 1 changed file with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,30 @@ public void execute() {
}
errStream.println("Created new package '" + packageName + "' at " + packagePath + ".");
errStream.println("What's next");
errStream.println("Execute the below command to run the program:")
errStream.println("\t bal run "+ packageName);
errStream.println("Else, execute the below command to build the executable JAR file:");
errStream.println("\t bal build "+ packageName);
switch (template) {
case "main":
errStream.println("Execute the below command to build the executable JAR file:");
errStream.println("\t bal build " + packageName);
break;

case "service":
errStream.println("Execute the below command to run the service:");
errStream.println("\t bal run " + packageName);
errStream.println("Else, execute the below command to build the executable JAR file:");
errStream.println("\t bal build " + packageName);
break;

case "lib":
errStream.println("Execute the below command to create the Ballerina archive:");
errStream.println("\t bal pack " + packageName);
break;

default:
errStream.println("Execute the below command to run the program:");
errStream.println("\t bal run " + packageName);

break;
}
}
if (this.exitWhenFinish) {
Runtime.getRuntime().exit(0);
Expand Down

0 comments on commit affa2d3

Please sign in to comment.