com.jsuereth.pgp.cli.ListSigs.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._
/** Lists Signatures on a file. */
case class ListSigs() extends PgpCommand {
def run(ctx: PgpCommandContext): Unit = {
import Display._
ctx.log.info("Looking for sigs")
ctx output {
printFileHeader(ctx.publicKeyRingFile) +
(ctx.publicKeyRing.keyRings map printRingWithSignatures mkString "\n")
}
}
override def isReadOnly = true
}
object ListSigs {
def parser(ctx: PgpStaticContext): Parser[PgpCommand] =
token("list-sigs") map { _ =>
ListSigs()
}
}