Copyright | (c) Mo Kweon |
---|---|
License | MIT |
Maintainer | kkweon@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
This module exports startShell
which starts an interactive shell
startShell
CTRL + C if you want to stop recording
Then it will copy the result to the system clipboard.
Synopsis
- startShell :: CLIOption -> IO ()
- runShellCommand :: Text -> RecordShellToMarkdownState ()
- runCommand :: Text -> Maybe Text -> RecordShellToMarkdownState ShellIO
Documentation
startShell :: CLIOption -> IO () Source #
Start an Interactive shell
When an user interrupt CTRL+C (sigINT
) then it will stop the session and print markdown
runShellCommand :: Text -> RecordShellToMarkdownState () Source #
Run Shell Command
This is a wrapper runCommand
:: Text | Shell command |
-> Maybe Text | Current working directory |
-> RecordShellToMarkdownState ShellIO |
Run a shell command
If the current working directory(CWD) is given, then run the command in the CWD