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

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

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()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy