md-exec

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 3 Imported by: 0

README

Codacy Badge Codacy Badge

Usage

md-exec could exec the commands in the Markdown files. For instance, it will execute those commands which in Markdown block via mde README.md

#!title: Print ip info
ifconfig

Variable input support

In some use cases, we need to change the variables or command line flags. Try the following demo:

#!title: Variable Input Hello World
name=linuxsuren
echo hello $name

Limitation

Please make sure the Markdown files meet Linux end-of-line. You could turn it via: dos2unix your.md

Documentation

Overview

Package main is the entrypoint of this CLI project

Directories

Path Synopsis
Package cli provides all the commands
Package cli provides all the commands

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL