sh2md-0.1.0.0: Record your shell session and print in the markdown format

Copyright(c) Mo Kweon
LicenseMIT
Maintainerkkweon@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

RecordShellToMarkdown

Description

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

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

runCommand Source #

Arguments

:: 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