summaryrefslogtreecommitdiffhomepage
path: root/Types
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-16 14:58:16 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-16 14:58:16 -0400
commitfccf788a5ce9788d7c073321a3d19941bc1269b1 (patch)
tree76726eb3d3cd6fbb05721e5862e87511d1683b76 /Types
parentc9c476ae7216b80932b80870a2cd06f9339306aa (diff)
downloadkeysafe-fccf788a5ce9788d7c073321a3d19941bc1269b1.tar.gz
more command line interface improvements
Diffstat (limited to 'Types')
-rw-r--r--Types/UI.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Types/UI.hs b/Types/UI.hs
index bba3d38..561aa65 100644
--- a/Types/UI.hs
+++ b/Types/UI.hs
@@ -9,8 +9,10 @@ import Types
data UI = UI
{ isAvailable :: IO Bool
+ , showError :: Desc -> IO ()
, promptName :: Title -> Desc -> Name -> (Name -> Maybe Problem) -> IO (Maybe Name)
, promptPassword :: Title -> Desc -> (Password -> Maybe Problem) -> IO (Maybe Password)
+ , promptKeyId :: Title -> Desc -> [(Name, KeyId)] -> IO (Maybe KeyId)
, withProgress :: Title -> Desc -> ((Percent -> IO ()) -> IO ()) -> IO ()
}