File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -74,15 +74,25 @@ refreshHelpGistId =
7474
7575gistRenderCommandTable :: CommandTable -> T. Text
7676gistRenderCommandTable =
77- (" * Builtin Commands \n " <> ) . T. unlines . map renderRow . M. toList
77+ ([qms |* Builtin Commands\n{header}\n|-\n|] <> ) .
78+ T. unlines . map renderRow . M. toList
7879 where
80+ header :: T. Text
81+ header = " |Name|Description|Location|"
82+ renderRow :: (T. Text , BuiltinCommand ) -> T. Text
7983 renderRow (name, command) =
80- [qms ||{name}|{bcDescription command}|{bcGitHubLocation command}||]
84+ [qms ||{name}|{bcDescription command}|{location}||]
85+ where
86+ location :: T. Text
87+ location = [qms |[[{bcGitHubLocation command}][Source↗]]|]
8188
8289gistRenderCustomCommandsTable :: [Entity CustomCommand ] -> T. Text
8390gistRenderCustomCommandsTable =
84- (" * Custom commands \n " <> ) . T. unlines . map (renderRow . entityPayload)
91+ ([qms |* Custom commands\n{header}\n|-\n|] <> ) .
92+ T. unlines . map (renderRow . entityPayload)
8593 where
94+ header :: T. Text
95+ header = " |Name|Definition|%times|"
8696 renderRow (CustomCommand name message times) =
8797 [qms ||{name}|{message}|{times}||]
8898
You can’t perform that action at this time.
0 commit comments