ListProfilesCmd: Replace System.out.println() with Print.outln()

This commit is contained in:
Paul Schaub 2023-04-17 13:03:18 +02:00
parent d38556f79a
commit 64c0fb11bc
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 2 additions and 3 deletions

View File

@ -6,6 +6,7 @@ package sop.cli.picocli.commands;
import picocli.CommandLine;
import sop.Profile;
import sop.cli.picocli.Print;
import sop.cli.picocli.SopCLI;
import sop.exception.SOPGPException;
import sop.operation.ListProfiles;
@ -25,9 +26,7 @@ public class ListProfilesCmd extends AbstractSopCmd {
try {
for (Profile profile : listProfiles.subcommand(subcommand)) {
// CHECKSTYLE:OFF
System.out.println(profile);
// CHECKSTYLE:ON
Print.outln(profile.toString());
}
} catch (SOPGPException.UnsupportedProfile e) {
String errorMsg = getMsg("sop.error.feature_support.subcommand_does_not_support_profiles", subcommand);