Pryrite, interactively execute shell code blocks in a markdown file
Pryrite, interactively execute shell code blocks in a markdown file
Pryrite is a command line tool that interactively runs executable blocks in a markdown file. One can think of pryrite as a console REPL/debugger for a markdown file. We drew inspiration from ruby's pry for the interface.
As developers, we come across plentiful documents that provide a prescriptive set of steps to do a task. Typically these include runbooks, onboarding/setup or trouble-shooting documents. Running commands from these documents involve: Reading the document in a browser followed by copy/pasting the commands in a console in order to run. We find this process cumbersome. Moreover, the output of the command(s) are never recorded, so you can never go back to a document and see if you had run a specific command, and what that result was.
Pryrite attempts to solve this by providing these features:
The following video shows pryrite working with a markdown file.
pryrite open https://raw.githubusercontent.com/1xyz/pryrite/main/_examples/hello-world.mdMacOS
brew tap 1xyz/pryrite
brew install pryriteLinux (amd64)
wget -O pryrite https://github.com/1xyz/pryrite/releases/latest/download/pryrite-linux-amd64 && chmod 755 pryriteLatest released binaries are available here. This includes other architectures.
Ubuntu
Install docker on Ubuntu
pryrite open https://raw.githubusercontent.com/1xyz/pryrite/main/_examples/install-docker-ubuntu.mdCleanup diskspace on Ubuntu
pryrite open https://raw.githubusercontent.com/1xyz/pryrite/main/_examples/cleanup-diskspace-ubuntu.mdMacOS
Install and work with Redis
pryrite open https://raw.githubusercontent.com/1xyz/pryrite/main/_examples/install-redis-osx.mdNo open issues yet, or sync has not completed.