mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-08 17:59:43 +02:00
Remove label() option from armor() operation
This commit is contained in:
parent
bb026bcbeb
commit
547acdb740
5 changed files with 0 additions and 31 deletions
|
@ -7,7 +7,6 @@ package sop.external.operation
|
|||
import java.io.InputStream
|
||||
import java.util.Properties
|
||||
import sop.Ready
|
||||
import sop.enums.ArmorLabel
|
||||
import sop.exception.SOPGPException
|
||||
import sop.external.ExternalSOP
|
||||
import sop.operation.Armor
|
||||
|
@ -18,8 +17,6 @@ class ArmorExternal(binary: String, environment: Properties) : Armor {
|
|||
private val commandList: MutableList<String> = mutableListOf(binary, "armor")
|
||||
private val envList: List<String> = ExternalSOP.propertiesToEnv(environment)
|
||||
|
||||
override fun label(label: ArmorLabel): Armor = apply { commandList.add("--label=$label") }
|
||||
|
||||
@Throws(SOPGPException.BadData::class)
|
||||
override fun data(data: InputStream): Ready =
|
||||
ExternalSOP.executeTransformingOperation(Runtime.getRuntime(), commandList, envList, data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue