• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pgpainless / wkd-java / #3

29 Sep 2025 01:44PM UTC coverage: 79.089% (-0.2%) from 79.258%
#3

push

other

vanitasvitae
Bump dependencies

Bump pgpainless-core to 2.0.0
Bump cert-d-java to 0.2.3
Bump cert-d-pgpainless to 0.2.3

28 of 28 new or added lines in 3 files covered. (100.0%)

1 existing line in 1 file now uncovered.

469 of 593 relevant lines covered (79.09%)

0.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/wkd-java-cli/src/main/java/pgp/wkd/cli/WKDCLI.java
1
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
2
//
3
// SPDX-License-Identifier: Apache-2.0
4

5
package pgp.wkd.cli;
6

7
import pgp.wkd.exception.CertNotFetchableException;
8
import pgp.wkd.exception.RejectedCertificateException;
9
import pgp.wkd.cli.command.GetCmd;
10
import picocli.CommandLine;
11

12
@CommandLine.Command(
13
        name = "wkd",
14
        resourceBundle = "msg_wkd",
15
        subcommands = {
16
                CommandLine.HelpCommand.class,
17
                GetCmd.class
18
        }
19
)
20
public class WKDCLI {
1✔
21

22
    public static void main(String[] args) {
23
        int exitCode = execute(args);
×
24
        if (exitCode != 0) {
×
25
            System.exit(exitCode);
×
26
        }
27
    }
×
28

29
    public static int execute(String[] args) {
30
        return new CommandLine(WKDCLI.class)
1✔
31
                .setExitCodeExceptionMapper(new CommandLine.IExitCodeExceptionMapper() {
1✔
32
                    @Override
33
                    public int getExitCode(Throwable exception) {
34
                        if (exception instanceof RejectedCertificateException) {
1✔
35
                            return ((RejectedCertificateException) exception).getErrorCode();
×
36
                        } else if (exception instanceof CertNotFetchableException) {
1✔
37
                            return CertNotFetchableException.ERROR_CODE;
1✔
38
                        }
39

40
                        // Others get mapped to 1
UNCOV
41
                        return 1;
×
42
                    }
43
                })
44
                .setCommandName("wkdcli")
1✔
45
                .execute(args);
1✔
46
    }
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc