com.jsuereth.pgp.cli.ListKeys.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._
import sbt.complete._
import sbt.complete.DefaultParsers._
case class ListKeys() extends PgpCommand {
def run(ctx: PgpCommandContext): Unit = {
import Display._
ctx output {
printFileHeader(ctx.publicKeyRingFile) +
(ctx.publicKeyRing.keyRings map printRing mkString "\n")
}
}
override def isReadOnly = true
}
object ListKeys {
def parser(ctx: PgpStaticContext): Parser[ListKeys] =
token("list-keys") map { _ =>
ListKeys()
}
}