From b125a66d9e7c5e64f4c776a47eec777f4ff9fccc Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sat, 2 May 2020 00:13:45 -0400 Subject: [PATCH] REF add some TODOS --- app/rofi-bitwarden.hs | 2 ++ app/rofi-devices.hs | 1 + 2 files changed, 3 insertions(+) diff --git a/app/rofi-bitwarden.hs b/app/rofi-bitwarden.hs index 07f0c7a..61fd4d8 100644 --- a/app/rofi-bitwarden.hs +++ b/app/rofi-bitwarden.hs @@ -43,6 +43,7 @@ import System.Process main :: IO () main = runChecks >> getArgs >>= parse +-- TODO check if daemon is running when running client parse :: [String] -> IO () parse ["-d", t] = case readMaybe t of { Just t' -> runDaemon t'; _ -> usage } parse ("-c":args) = runClient args @@ -78,6 +79,7 @@ newtype BWServerConf = BWServerConf { timeout :: UnixDiffTime } +-- TODO add a cache so the browse list will load faster data CurrentSession = CurrentSession { timestamp :: UnixTime , hash :: String diff --git a/app/rofi-devices.hs b/app/rofi-devices.hs index 9ba2677..e5f9a5d 100644 --- a/app/rofi-devices.hs +++ b/app/rofi-devices.hs @@ -84,6 +84,7 @@ type Password = IO (Maybe String) type MountpointPasswords = M.Map String Password +-- TODO check if mountdir exists or puke data MountConf = MountConf { passwords :: MountpointPasswords , mountDir :: FilePath