Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stateful/runme
DevOps Notebooks Built with Markdown
https://github.com/stateful/runme
cloud devops notebooks workflows
Last synced: 9 days ago
JSON representation
DevOps Notebooks Built with Markdown
- Host: GitHub
- URL: https://github.com/stateful/runme
- Owner: stateful
- License: apache-2.0
- Created: 2022-07-18T07:58:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T19:31:00.000Z (13 days ago)
- Last Synced: 2024-10-29T21:33:59.227Z (13 days ago)
- Topics: cloud, devops, notebooks, workflows
- Language: Go
- Homepage: https://runme.dev
- Size: 94.1 MB
- Stars: 1,162
- Watchers: 10
- Forks: 38
- Open Issues: 98
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tuis - runme
- jimsghstars - stateful/runme - DevOps Notebooks Built with Markdown (Go)
README
[![Runme](./.github/images/github-header.png)](https://runme.dev)
# Runme runs Markdown [![ci](https://github.com/stateful/runme/actions/workflows/ci.yml/badge.svg)](https://github.com/stateful/runme/actions/workflows/ci.yml) [![Join us on Discord](https://img.shields.io/discord/1102639988832735374?color=5b39df&label=Join%20us%20on%20Discord)](https://discord.gg/runme)
> Discover and run code snippets directly from your markdown files, e.g. runbooks, docs, or READMEs. Read the [docs](https://docs.runme.dev).
[Runme](https://runme.dev) is a tool that makes runbooks actually runnable, making it easier to follow step-by-step instructions. Shell/bash, Python, Ruby, Javascript/Typescript, Lua, PHP, Perl, and many other runtimes are supported via Runme's shebang feature. Runme allows users to execute instructions, check intermediate results, and ensure the desired outputs are achieved. This makes it an excellent solution for runbooks, playbooks, and documentation that requires users to complete runnable steps incrementally—making operational docs reliable and much less susceptible to bitrot.
Runme achieves this by literally running markdown. More specifically, Runme runs your commands (shell, bash, zsh) or code inside your fenced code blocks. It's 100% compatible with your programming language's task definitions (Makefile, Gradle, Grunt, NPM scripts, Pipfile or Deno tasks, etc.) and markdown-native. Much like a terminal session, environment variables are retained across execution, and it is possible to pipe previous cells's output into successive cells. Runme persists your runbooks in markdown, which your docs are likely already using.
Watch full video at [Runme](https://runme.dev).
## Installation
To get started with Runme on MacOS, the recommended method of installation is using Homebrew, a popular package manager that simplifies the installation process. First, ensure your Homebrew is up to date to avoid any compatibility issues:
```sh { name=update-brew }
$ brew update```
With Homebrew updated, proceed to install Runme. This command will fetch the latest stable release of Runme and install it on your system:
```sh { name=install-runme }
$ brew install runme```
If you prefer using NPM (Node Package Manager) for managing your packages, Runme can also be installed globally via the following command:
```sh { name=install-npm }
$ npm install -g runme```
For users with different setups, you can visit [Runme's releases page](https://github.com/stateful/runme/releases) and download a binary suitable for your operating system. For those with Go developer tools set up, Runme can be installed using the `go install` command:
```sh { name=install-via-go }
$ go install github.com/stateful/runme@latest```
## Commands
Runme’s CLI (Command Line Interface) offers a set of commands designed to help you seamlessly discover and execute workflows within your project. Below are examples demonstrating the use of these commands:
### Run Workflows
Suppose you have a `README.md` file in your project directory with the following content:
````md
# My Project## Install
To initiate the installation process, start by updating Brew dependencies with the following command:
```sh { name=update-brew }
brew update
...
````````
To execute the `update-brew` code cell from the `README.md` file, simply use the runme run command followed by the name of the code cell:
```sh
$ runme run update-brew```
For more details and advanced configurations for code cells, refer to the [Runme documentation](https://docs.runme.dev/configuration).
### List
To navigate through and identify available workflows in your project, use the `runme list` command. This command will display a list of all workflows you can run:
```sh { name=runme-list closeTerminalOnSuccess=false interactive=false }
$ runme list```
The `print` command is useful when you need to review the code within a code cell without executing it. It outputs the code present in the specified code cell, providing a quick way to inspect the code:
```sh { name=runme-print interactive=false }
$ runme print hello-js```
### Help
Find help and information to parameters and configurations.
If you need assistance or information regarding various parameters and configurations available with Runme, the `help` command provides quick access to helpful information:```sh {"id":"01J86DCNWW7W7R73NKB51QAS2V","interactive":"false","name":"runme-help"}
$ runme help```
Feel free to explore further and experiment with the commands to get a deeper understanding of Runme’s functionalities!
## Documentation
Check out the full documentation available at [Runme](https://docs.runme.dev).
## Feedback
Let us know what you think via [GitHub issues](https://github.com/stateful/runme/issues/new) or submit a PR. Join the conversation [on Discord](https://discord.gg/runme). We're looking forward to hear from you.
## Community
The Runme community is growing, join us!
- Ask questions and be curious with us [on Discord](https://discord.gg/runme)
- Read about real live Runme examples and use cases in [our blog](https://runme.dev/blog)
- Subscribe for updates to [our newsletter](https://runme.dev/list)## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md) for more information or just click on:
[![Run with Runme](https://badgen.net/badge/Run%20with/Runme/5B3ADF?icon=https://runme.dev/img/logo.svg)](https://runme.dev/api/runme?repository=https%3A%2F%2Fgithub.com%2Fstateful%2Frunme.git&fileToOpen=CONTRIBUTING.md)
## LICENCE
Apache License, Version 2.0