com.jsuereth.pgp.cli.commands.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sbt-pgp_sbt2.0.0-M2_3 Show documentation
Show all versions of sbt-pgp_sbt2.0.0-M2_3 Show documentation
sbt-pgp provides PGP signing for sbt
The newest version!
package com.jsuereth.pgp
package cli
import sbt.complete._
import sbt.complete.DefaultParsers._
/** Represents a PgpCommand */
trait PgpCommand {
def run(ctx: PgpCommandContext): Unit
/** Returns true if the command will not modify the public/private keys. */
def isReadOnly: Boolean = false
}
object PgpCommand {
def parser(ctx: PgpStaticContext): Parser[PgpCommand] =
(GeneratePgpKey.parser(ctx) |
ListKeys.parser(ctx) |
ListSigs.parser(ctx) |
SendKey.parser(ctx) |
ReceiveKey.parser(ctx) |
ImportKey.parser(ctx) |
EncryptMessage.parser(ctx) |
EncryptFile.parser(ctx) |
SignKey.parser(ctx) |
ExportPublicKey.parser(ctx))
}