summaryrefslogtreecommitdiff
path: root/kiki.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2016-04-14 23:10:56 -0400
committerjoe <joe@jerkface.net>2016-04-14 23:10:56 -0400
commitb5958c62d1eb040e6b081fd7ba94e1b88ecd1e9a (patch)
tree882360444950b10405f0206c6fb74eafd1493d62 /kiki.hs
parentb57248ba0189f9d91be08e02fc8e23dd29a99687 (diff)
Added 'dns' type to low-level "merge" command.
Diffstat (limited to 'kiki.hs')
-rw-r--r--kiki.hs11
1 files changed, 6 insertions, 5 deletions
diff --git a/kiki.hs b/kiki.hs
index c5572c6..2fc960d 100644
--- a/kiki.hs
+++ b/kiki.hs
@@ -1243,7 +1243,7 @@ kiki "merge" [] = do
1243 putStr . unlines $ 1243 putStr . unlines $
1244 [ "kiki merge [ --passphrase-fd=FD ... ]" 1244 [ "kiki merge [ --passphrase-fd=FD ... ]"
1245 , " ( --home[=HOMEDIR]" 1245 , " ( --home[=HOMEDIR]"
1246 , " | --type=(keyring|pem|wallet|hosts)" 1246 , " | --type=(keyring|pem|wallet|hosts|dns)"
1247 , " | --access=[auto|secret|public]" 1247 , " | --access=[auto|secret|public]"
1248 , " | --flow=(fill|spill|sync)[,(subkeys|match=SPEC)]" 1248 , " | --flow=(fill|spill|sync)[,(subkeys|match=SPEC)]"
1249 , " | --create=CMD" 1249 , " | --create=CMD"
@@ -1359,10 +1359,11 @@ kiki "merge" args = do
1359 Left ("create",Just cmd) -> 1359 Left ("create",Just cmd) ->
1360 ( flow { initializer = if null cmd then Nothing else Just cmd } 1360 ( flow { initializer = if null cmd then Nothing else Just cmd }
1361 , op ) 1361 , op )
1362 Left ("type",Just "keyring") -> ( flow { typ = KeyRingFile }, op ) 1362 Left ("type",Just "keyring") -> ( flow { typ = KeyRingFile } , op )
1363 Left ("type",Just "pem" ) -> ( flow { typ = PEMFile }, op ) 1363 Left ("type",Just "pem" ) -> ( flow { typ = PEMFile } , op )
1364 Left ("type",Just "wallet" ) -> ( flow { typ = WalletFile }, op ) 1364 Left ("type",Just "wallet" ) -> ( flow { typ = WalletFile } , op )
1365 Left ("type",Just "hosts" ) -> ( flow { typ = Hosts }, op ) 1365 Left ("type",Just "hosts" ) -> ( flow { typ = Hosts } , op )
1366 Left ("type",Just "dns" ) -> ( flow { typ = DNSPresentation } , op )
1366 Left ("access",Just "public") -> ( flow { access = Pub }, op ) 1367 Left ("access",Just "public") -> ( flow { access = Pub }, op )
1367 Left ("access",Just "secret") -> ( flow { access = Sec }, op ) 1368 Left ("access",Just "secret") -> ( flow { access = Sec }, op )
1368 Left ("access",Just "auto") -> ( flow { access = AutoAccess }, op ) 1369 Left ("access",Just "auto") -> ( flow { access = AutoAccess }, op )