百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

pryrite

> 开发工具
开源

Pryrite 可在 Markdown 文件中交互执行 shell 代码块

189 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Pryrite 可在 Markdown 文件中交互执行 shell 代码块

Pryrite

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.

Motivation

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.

Features

Pryrite attempts to solve this by providing these features:

  1. An interactive runner for markdown so that blocks marked as ```shell can be executed.
    • (Note: we plan to support more executable types in the near future).
  2. The result of each executable block is stored so that it can be retrieved contextually.

Demo Example

The following video shows pryrite working with a markdown file.

https://user-images.githubusercontent.com/58613330/166069790-8de28d76-7103-40e0-bac3-f10b34df1655.mp4

  • Try it out yourself
bash
pryrite open https://raw.githubusercontent.com/1xyz/pryrite/main/_examples/hello-world.md

Install

  • MacOS

    bash
    brew tap 1xyz/pryrite
    brew install pryrite
  • Linux (amd64)

    bash
    wget -O pryrite https://github.com/1xyz/pryrite/releases/latest/download/pryrite-linux-amd64 && chmod 755 pryrite

Releases

Latest released binaries are available here. This includes other architectures.

Examples to try

  • Ubuntu

    Install docker on Ubuntu

    bash
    pryrite open https://raw.githubusercontent.com/1xyz/pryrite/main/_examples/install-docker-ubuntu.md

    Cleanup diskspace on Ubuntu

    bash
    pryrite open https://raw.githubusercontent.com/1xyz/pryrite/main/_examples/cleanup-diskspace-ubuntu.md
  • MacOS

    Install and work with Redis

    bash
    pryrite open https://raw.githubusercontent.com/1xyz/pryrite/main/_examples/install-redis-osx.md

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gocliexecutormarkdown

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具