From fccf788a5ce9788d7c073321a3d19941bc1269b1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 16 Aug 2016 14:58:16 -0400 Subject: more command line interface improvements --- Types/UI.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Types') 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 () } -- cgit v1.2.3