1module Obelisk.ExecutableConfig (get) where
3import Control.Exception
6import Data.Text.IO as T
7import System.FilePath.Posix ((</>))
10get :: Text -> IO (Maybe Text)
12 let doesNotExist = \e -> if isDoesNotExistError e then Just () else Nothing
13 catchJust doesNotExist (fmap Just $ T.readFile $ "config" </> T.unpack path) (\_ -> pure Nothing)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list