Skip to content

Commit

Permalink
chore: app setup now tells user about --force (#1550)
Browse files Browse the repository at this point in the history
When the user runs `app setup` when, according to Jbang, the environment
was already set up correctly a message will be shown that the user can
add the `--force` flag to perform the setup anyway.

See #1524
  • Loading branch information
quintesse authored Feb 2, 2023
1 parent b1756bf commit 5501090
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/dev/jbang/cli/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ public static int setup(boolean withJava, boolean force, boolean chatty) {
Util.infoMsg("Setting up JBang environment...");
} else if (chatty) {
Util.infoMsg("JBang environment is already set up.");
Util.infoMsg("(You can use --force to perform the setup anyway)");
}
if (Util.getShell() == Util.Shell.bash) {
if (changed) {
Expand Down

0 comments on commit 5501090

Please sign in to comment.