Compare commits
2 Commits
bb85081380
...
85920c26a0
Author | SHA1 | Date | |
---|---|---|---|
Jonathan Lamothe | 85920c26a0 | ||
Jonathan Lamothe | 8be90e9822 |
|
@ -1,5 +1,10 @@
|
|||
# Changelog for passman
|
||||
|
||||
## current
|
||||
|
||||
- minor UI tweak
|
||||
- minor refactoring
|
||||
|
||||
## 0.3.1.1
|
||||
|
||||
- updated documentation to on longer mention GitHub
|
||||
|
|
|
@ -142,7 +142,7 @@ buildData = do
|
|||
|
||||
searchServ :: S.StateT Status IO ()
|
||||
searchServ = do
|
||||
svc <- req $ prompt "service name: " reqResp
|
||||
svc <- req $ prompt "\nservice name: " reqResp
|
||||
db <- S.gets $ view database
|
||||
case pwSearch svc db of
|
||||
[] -> do
|
||||
|
|
|
@ -105,9 +105,9 @@ confirm :: String -> Request Bool
|
|||
confirm x = prompt (x ++ " (y/n): ") $ reqAgree Nothing $ fmap return reqChar
|
||||
|
||||
loadFrom :: FilePath -> Request PWDatabase
|
||||
loadFrom path = reqDefault
|
||||
loadFrom path = fromMaybe newPWDatabase <$> reqDefault
|
||||
(reqIO (decodeFileStrict path))
|
||||
(Just newPWDatabase) >>= (return . fromMaybe newPWDatabase)
|
||||
(Just newPWDatabase)
|
||||
|
||||
save :: S.StateT Status IO ()
|
||||
save = do
|
||||
|
|
Loading…
Reference in New Issue
Block a user