;imp: demo: titles cleanup
This commit is contained in:
parent
7632321b3c
commit
0520ef03f6
@ -26,6 +26,15 @@ import qualified Data.ByteString.Char8 as B
|
||||
import System.IO.Temp (withSystemTempFile)
|
||||
import System.IO (hClose)
|
||||
|
||||
demos :: [Demo]
|
||||
demos = map readDemo [
|
||||
$(embedFileRelative "embeddedfiles/install.cast"), -- https://asciinema.org/a/567934 Installing hledger from source with hledger-install
|
||||
$(embedFileRelative "embeddedfiles/demo.cast"), -- https://asciinema.org/a/567944 Watching the built-in demos
|
||||
$(embedFileRelative "embeddedfiles/add.cast"), -- https://asciinema.org/a/567935 The easiest way to start a journal (add)
|
||||
$(embedFileRelative "embeddedfiles/print.cast"), -- https://asciinema.org/a/567936 Show full transactions (print)
|
||||
$(embedFileRelative "embeddedfiles/balance.cast") -- https://asciinema.org/a/567937 Show account balances and changes (balance)
|
||||
]
|
||||
|
||||
-- | An embedded asciinema cast, with some of the metadata separated out.
|
||||
-- The original file name is not preserved.
|
||||
data Demo = Demo {
|
||||
@ -33,15 +42,6 @@ data Demo = Demo {
|
||||
_dcontent :: ByteString -- asciinema v2 content
|
||||
}
|
||||
|
||||
demos :: [Demo]
|
||||
demos = map readDemo [
|
||||
$(embedFileRelative "embeddedfiles/install.cast") -- https://asciinema.org/a/567934
|
||||
,$(embedFileRelative "embeddedfiles/demo.cast") -- https://asciinema.org/a/567944
|
||||
,$(embedFileRelative "embeddedfiles/add.cast") -- https://asciinema.org/a/567935
|
||||
,$(embedFileRelative "embeddedfiles/print.cast") -- https://asciinema.org/a/567936
|
||||
,$(embedFileRelative "embeddedfiles/balance.cast") -- https://asciinema.org/a/567937
|
||||
]
|
||||
|
||||
-- | Command line options for this command.
|
||||
demomode = hledgerCommandMode
|
||||
$(embedFileRelative "Hledger/Cli/Commands/Demo.txt")
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{"version": 2, "width": 80, "height": 25, "timestamp": 1678904454, "env": {"SHELL": "/opt/homebrew/bin/bash", "TERM": "xterm-256color"}, "title": "The simplest way to start (add)"}
|
||||
{"version": 2, "width": 80, "height": 25, "timestamp": 1678904454, "env": {"SHELL": "/opt/homebrew/bin/bash", "TERM": "xterm-256color"}, "title": "The easiest way to start a journal (add)"}
|
||||
[0.255203, "o", "\u001b[?2004h~$ "]
|
||||
[1.234397, "o", "h"]
|
||||
[1.327242, "o", "l"]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{"version": 2, "width": 80, "height": 25, "timestamp": 1678904454, "idle_time_limit": 0.5, "env": {"SHELL": "/opt/homebrew/bin/bash", "TERM": "xterm-256color"}, "title": "Showing account balances (balance)"}
|
||||
{"version": 2, "width": 80, "height": 25, "timestamp": 1678904454, "idle_time_limit": 0.5, "env": {"SHELL": "/opt/homebrew/bin/bash", "TERM": "xterm-256color"}, "title": "Show account balances and changes (balance)"}
|
||||
[97.851861, "o", "\u001b[?2004h~$ "]
|
||||
[108.4427, "o", "h"]
|
||||
[108.511571, "o", "l"]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{"version": 2, "width": 80, "height": 25, "timestamp": 1679047443, "env": {"SHELL": "/opt/homebrew/bin/bash", "TERM": "xterm-256color"}, "title": "Watching the built-in demos (demo)"}
|
||||
{"version": 2, "width": 80, "height": 25, "timestamp": 1679047443, "env": {"SHELL": "/opt/homebrew/bin/bash", "TERM": "xterm-256color"}, "title": "Watching the built-in demos"}
|
||||
[0.176603, "o", "\u001b[?2004h$ "]
|
||||
[1.310863, "o", "h"]
|
||||
[1.353474, "o", "l"]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{"version": 2, "width": 80, "height": 25, "timestamp": 1679022326, "env": {"SHELL": "/opt/homebrew/bin/bash", "TERM": "xterm-256color"}, "title": "Installing hledger tools from source (hledger-install.sh)"}
|
||||
{"version": 2, "width": 80, "height": 25, "timestamp": 1679022326, "env": {"SHELL": "/opt/homebrew/bin/bash", "TERM": "xterm-256color"}, "title": "Installing hledger from source with hledger-install"}
|
||||
[0.176734, "o", "\u001b[?2004h$ "]
|
||||
[1.370668, "o", "#"]
|
||||
[1.638932, "o", " "]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{"version": 2, "width": 80, "height": 25, "timestamp": 1678904454, "idle_time_limit": 0.5, "env": {"SHELL": "/opt/homebrew/bin/bash", "TERM": "xterm-256color"}, "title": "Showing journal entries (print)"}
|
||||
{"version": 2, "width": 80, "height": 25, "timestamp": 1678904454, "idle_time_limit": 0.5, "env": {"SHELL": "/opt/homebrew/bin/bash", "TERM": "xterm-256color"}, "title": "Show full transactions (print)"}
|
||||
[97.851861, "o", "\u001b[?2004h~$ "]
|
||||
[99.846929, "o", "h"]
|
||||
[99.937799, "o", "l"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user