Giter Site home page Giter Site logo

saumzzz / runme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stateful/runme

0.0 0.0 0.0 7.37 MB

Execute commands inside your runbooks, docs, and READMEs.

Home Page: https://runme.dev

License: Apache License 2.0

JavaScript 10.08% Ruby 0.01% Go 78.20% TypeScript 11.30% Makefile 0.42%

runme's Introduction

Runme

Runme runs Markdown ci Join us on Discord

Discover and run code snippets directly from your markdown files, e.g. runbooks, docs, or READMEs (defaults to local README.md).

Runme is a tool that makes runbooks actually runnable, making it easier to follow step-by-step instructions. Users can execute instructions, check intermediate results, and ensure the desired outputs are achieved. Authors can create predefined golden paths and share them with others. Runme combines the guardrails of a pipeline with the flexibility of scripting, where users can check intermediary results before moving on.

Runme achieves this by literally running markdown (ubiquitous for docs inside repos). More specifically, Runme runs your commands inside your fenced code blocks (shell, bash, zsh). It's 100% compatible with your programming language's task definitions (Makefile, Gradle, Grunt, NPM scripts, Pipfile or Deno tasks, etc.). Runme persists your runbooks in markdown, which your docs are likely already using.

Installation

The easiest way on MacOS is to use Homebrew:

$ brew update

Install runme:

$ brew install runme

or via NPM:

$ npm install -g runme

Alternatively, check out Runme's releases and select a binary for your operating system.

If you have Go developer tools installed, you can install it with go install:

$ go install github.com/stateful/runme@latest

Commands

The Runme CLI contains several commands that allow you to discover and run workflows within your project.

Run Workflows

Given the following README.md file:

# My Project

## Install

First update Brew dependencies:

```sh { name=update-brew }
brew update
```

...

You can run this code cell by just calling

$ runme run update-brew

Read more about how you can configure code cells in the Runme documentation.

List

Explore which workflows are available in your project.

$ runme list

Print

Instead of running the code of a code cell, print just outputs the code that would have been executed.

$ runme print hello-world

Help

Find help and information to parameters and configurations.

$ runme help

Examples

You can find an exhaustive list of examples in the official Runme documentation with examples demonstrating various use cases of Runme.

Feedback

Let us know what you think via GitHub issues or submit a PR. Join the conversation on Discord. We're looking forward to hear from you.

Community

The Runme community is growing, join us!

Contributing

See CONTRIBUTING.md for more information or just click on:

Run with Runme

LICENCE

Apache License, Version 2.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.