1{-# LANGUAGE LambdaCase #-}
2module Obelisk.ExecutableConfig.Lookup where
4import Data.ByteString (ByteString)
7import qualified Data.Text as T
8import qualified Data.Text.Encoding as T
9import Language.Javascript.JSaddle.WKWebView
10import System.FilePath.Posix
12import Obelisk.Configs.Internal.Directory
14getConfigs :: IO (Map Text ByteString)
15getConfigs = mainBundleResourcePath >>= \case
16 Nothing -> error "Could not get bundle resource path."
17 Just p -> getConfigsFromDirectory $ T.unpack (T.decodeUtf8 p) </> "config"
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