Skip to content

Commit

Permalink
[CLI Improvement] Pack command message added
Browse files Browse the repository at this point in the history
  • Loading branch information
tanbirali committed Oct 10, 2024
1 parent affa2d3 commit 04eb793
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ public void execute() {
}
} catch (ProjectException e) {
CommandUtil.printError(this.errStream, e.getMessage(), null, false);
CommandUtil.printError(this.errStream, "What's Next", null, false);
CommandUtil.printError(this.errStream, "Execute bal push to publish the package to Ballerina Central.", null, false);


CommandUtil.exitError(this.exitWhenFinish);
return;
Expand Down Expand Up @@ -268,6 +267,10 @@ public void execute() {
.addTask(new DumpBuildTimeTask(outStream), !project.buildOptions().dumpBuildTime())
.build();

outStream.println("What's Next");
outStream.println("Execute the below command to publish the package to Ballerina Central.");
outStream.println("\t bal push ");

taskExecutor.executeTasks(project);
if (this.exitWhenFinish) {
Runtime.getRuntime().exit(0);
Expand Down

0 comments on commit 04eb793

Please sign in to comment.