All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jsuereth.pgp.cli.ExportPublicKey.scala Maven / Gradle / Ivy

The newest version!
package bleep.plugin.pgp
package cli

case class ExportPublicKey(id: String) extends PgpCommand {
  def run(ctx: PgpCommandContext): Unit = {
    val key = ctx.publicKeyRing.findPubKeyRing(id) getOrElse
      sys.error("Could not find key: " + id)
    ctx.output(key.saveToString)
  }
  override def isReadOnly: Boolean = true
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy