1-- read each .tutd file in the /scripts directory and execute it with the tutd interpreter
3import TutorialD.Interpreter.Import.TutorialD
5import Data.List (isSuffixOf)
10 let scriptsDir = "scripts/"
11 dirFiles <- getDirectoryContents scriptsDir
12 let scriptList = map (scriptsDir ++) $ filter (".tutd" `isSuffixOf`) dirFiles
13 pure (TestList $ map testScript scriptList)
18 tcounts <- runTestTT tests
19 if errors tcounts + failures tcounts > 0 then exitFailure else exitSuccess
21testScript :: FilePath -> Test
22testScript tutdFile = TestCase $ do
23 eImport <- importTutorialD tutdFile
25 Left err -> assertFailure ("tutd import failure in " ++ tutdFile ++ ": " ++ show err)
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