Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: config set/remove should tell what file it edits #1188

Merged
merged 1 commit into from
Jan 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/dev/jbang/cli/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public Integer doCall() throws IOException {
} else {
cfgFile = ConfigUtil.setNearestConfigValue(key, value);
}
Util.verboseMsg("Option '" + key + "' set to '" + value + "' in " + cfgFile);
Util.infoMsg("Option '" + key + "' set to '" + value + "' in " + cfgFile);
return EXIT_OK;
}
}
Expand All @@ -121,7 +121,7 @@ public Integer doCall() throws IOException {
cfgFile = ConfigUtil.unsetNearestConfigValue(key);
}
if (cfgFile != null) {
Util.verboseMsg("Option '" + key + "' removed from in " + cfgFile);
Util.infoMsg("Option '" + key + "' removed from in " + cfgFile);
} else {
Util.warnMsg("Cannot remove built-in option '" + key + "'");
}
Expand Down