1{-# LANGUAGE OverloadedStrings #-}
2module Obelisk.CliApp.Theme where
6data CliTheme = CliTheme
7 { _cliTheme_done :: Text
8 , _cliTheme_failed :: Text
9 , _cliTheme_arrow :: Text
10 , _cliTheme_spinner :: SpinnerTheme
13type SpinnerTheme = [Text]
15unicodeTheme :: CliTheme
16unicodeTheme = CliTheme
17 { _cliTheme_done = "✔"
18 , _cliTheme_failed = "✖"
19 , _cliTheme_arrow = "⇾"
20 , _cliTheme_spinner = ["◐", "◓", "◑", "◒"]
23noUnicodeTheme :: CliTheme
24noUnicodeTheme = CliTheme
25 { _cliTheme_done = "DONE"
26 , _cliTheme_failed = "FAILED"
27 , _cliTheme_arrow = "->"
28 , _cliTheme_spinner = ["|", "/", "-", "\\"]
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