Crates.io | makedown |
lib.rs | makedown |
version | 0.0.0 |
source | src |
created_at | 2024-10-17 23:08:19.96179 |
updated_at | 2024-10-17 23:08:19.96179 |
description | Executable Markdown shell scripts |
homepage | https://makedown.dev |
repository | https://github.com/tzador/makedown |
max_upload_size | |
id | 1413686 |
size | 5,342 |
makedown
(aka Makefile + Markdown) is motivated by developers need to define
multiple scripts in one file next to their documentation, and have a handy way
to run them from terminal.
Makefile
s are great for this, but are lucking some of the
makedown
features, such as syntax
highlighting, hierarchical scanning of .md files with embedded documentation.
There are also package.json
scripts in node.js
world, but users are forced
to write script commands in one line.
It is implemented in Python for portability reasons, since most Unix-like systems already have a Python interpreter installed.
Here is DEMO.md file with examples of usage.
This is a fresh project still under active development.
Feel free to open and issue or PR.
We also have have a Discord server for quick discussions and sharing ideas or feedback.
zsh
, bash
, javascript
, python
and
infinitely many more, using custom hashbangs.pip install makedown
Define commands in a .md
file:
# my_scripts.md
Here are a few examples of commands:
## [hello]() Prints "hello" using bash
```bash
echo "hello"
```
## [world]() Prints "world" using python
This is a more detailed description of the command.
```python
#!/usr/bin/env python
print("world")
```
To run commands in a markdown file, execute makedown
from the same directory
or any subdirectory:
makedown hello
A shorter version is also available:
m world
To see all the available commands with their short descriptions, use one of the following:
makedown --help
or just run it without any arguments:
m
To get more details about a specific command, use:
makedown world --help
pip install --upgrade makedown
pip uninstall makedown