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

pgpainless / pgpainless / #1050

20 Mar 2025 05:18PM UTC coverage: 86.822% (-2.3%) from 89.121%
#1050

push

github

vanitasvitae
Perform coveralls task after jacocoRootReport

6575 of 7573 relevant lines covered (86.82%)

0.87 hits per line

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

0.0
/pgpainless-cli/src/main/java/org/pgpainless/cli/PGPainlessCLI.java
1
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
2
//
3
// SPDX-License-Identifier: Apache-2.0
4

5
package org.pgpainless.cli;
6

7
import org.pgpainless.sop.SOPImpl;
8
import sop.cli.picocli.SopCLI;
9

10
/**
11
 * This class merely binds PGPainless to {@link SopCLI} by injecting a {@link SOPImpl} instance.
12
 * CLI command calls are then simply forwarded to {@link SopCLI#execute(String[])}.
13
 */
14
public class PGPainlessCLI {
×
15

16
    static {
17
        // Prevent slf4j initialization logging
18
        // https://github.com/qos-ch/slf4j/issues/422#issuecomment-2277280185
19
        System.setProperty("slf4j.internal.verbosity", "WARN");
×
20

21
        SopCLI.EXECUTABLE_NAME = "pgpainless-cli";
×
22
        SopCLI.setSopInstance(new SOPImpl());
×
23
    }
×
24

25
    /**
26
     * Main method of the CLI application.
27
     * @param args arguments
28
     */
29
    public static void main(String[] args) {
30
        int result = execute(args);
×
31
        if (result != 0) {
×
32
            System.exit(result);
×
33
        }
34
    }
×
35

36
    /**
37
     * Execute the given command and return the exit code of the program.
38
     *
39
     * @param args command string array (e.g. ["pgpainless-cli", "generate-key", "Alice"])
40
     * @return exit code
41
     */
42
    public static int execute(String... args) {
43
        return SopCLI.execute(args);
×
44
    }
45
}
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

© 2025 Coveralls, Inc