pgpainless/pgpainless-sop/src/main/java/org/pgpainless/sop/PGPainlessCLI.java

59 lines
1.7 KiB
Java
Raw Normal View History

2020-12-16 20:09:01 +01:00
/*
* Copyright 2020 Paul Schaub.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
2020-11-26 11:00:48 +01:00
package org.pgpainless.sop;
2020-12-16 20:09:01 +01:00
import org.pgpainless.sop.commands.Armor;
import org.pgpainless.sop.commands.Dearmor;
import org.pgpainless.sop.commands.Decrypt;
import org.pgpainless.sop.commands.Encrypt;
2020-12-16 20:09:01 +01:00
import org.pgpainless.sop.commands.ExtractCert;
import org.pgpainless.sop.commands.GenerateKey;
import org.pgpainless.sop.commands.Sign;
import org.pgpainless.sop.commands.Verify;
import org.pgpainless.sop.commands.Version;
2020-11-26 11:00:48 +01:00
import picocli.CommandLine;
@CommandLine.Command(exitCodeOnInvalidInput = 69,
2020-11-26 11:00:48 +01:00
subcommands = {
Armor.class,
Dearmor.class,
Decrypt.class,
Encrypt.class,
2020-11-26 11:00:48 +01:00
ExtractCert.class,
GenerateKey.class,
Sign.class,
2020-12-16 20:09:01 +01:00
Verify.class,
Version.class
2020-11-26 11:00:48 +01:00
}
)
public class PGPainlessCLI implements Runnable {
public PGPainlessCLI() {
}
2020-11-26 11:00:48 +01:00
public static void main(String[] args) {
int code = new CommandLine(new PGPainlessCLI())
.execute(args);
System.exit(code);
2020-11-26 11:00:48 +01:00
}
@Override
public void run() {
}
}