mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2024-11-22 15:12:06 +01:00
ListProfilesCmd: Replace System.out.println() with Print.outln()
This commit is contained in:
parent
d38556f79a
commit
64c0fb11bc
1 changed files with 2 additions and 3 deletions
|
@ -6,6 +6,7 @@ package sop.cli.picocli.commands;
|
||||||
|
|
||||||
import picocli.CommandLine;
|
import picocli.CommandLine;
|
||||||
import sop.Profile;
|
import sop.Profile;
|
||||||
|
import sop.cli.picocli.Print;
|
||||||
import sop.cli.picocli.SopCLI;
|
import sop.cli.picocli.SopCLI;
|
||||||
import sop.exception.SOPGPException;
|
import sop.exception.SOPGPException;
|
||||||
import sop.operation.ListProfiles;
|
import sop.operation.ListProfiles;
|
||||||
|
@ -25,9 +26,7 @@ public class ListProfilesCmd extends AbstractSopCmd {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (Profile profile : listProfiles.subcommand(subcommand)) {
|
for (Profile profile : listProfiles.subcommand(subcommand)) {
|
||||||
// CHECKSTYLE:OFF
|
Print.outln(profile.toString());
|
||||||
System.out.println(profile);
|
|
||||||
// CHECKSTYLE:ON
|
|
||||||
}
|
}
|
||||||
} catch (SOPGPException.UnsupportedProfile e) {
|
} catch (SOPGPException.UnsupportedProfile e) {
|
||||||
String errorMsg = getMsg("sop.error.feature_support.subcommand_does_not_support_profiles", subcommand);
|
String errorMsg = getMsg("sop.error.feature_support.subcommand_does_not_support_profiles", subcommand);
|
||||||
|
|
Loading…
Reference in a new issue