Skip to main content

A CLI utility to execute scripts from within markdown files.

Project description

makedown

makedown is a versatile CLI tool that lets you execute shell scripts, JavaScript code, and Python code from one or more markdown files. It's a streamlined alternative to Makefile or package.json scripts, and it features built-in syntax highlighting through markdown code blocks.

Key Features

  • Multilingual Execution: Supports Zsh, JavaScript, and Python.
  • Simplified Scripting: Use markdown files (.md) to organize and run commands.
  • Syntax Highlighting: Leverages markdown code blocks for readability.
  • Autocomplete Support: ZSH completions for a smoother workflow.
  • support tripple backtick code blocks

Install

pip install makedown

Usage

Define and document your commands in a markdown file, like DEMO.md.

Then use makedown to run them, from within the same directory or any subdirectory.

$ makedown --help # Prints help with available commands
$ makedown # Also prints help

$ makedown my_command # Runs the command
$ makedown my_command arg1 arg2 # Pass arguments to the command
$ makedown my_command --help # Prints help for the command

Development

dev:venv:create Creates a virtual environment.

python3 -m venv venv

Activate the virtual environment.

source venv/bin/activate

dev:install Installs python dependencies.

pip install setuptools wheel twine

dev:build Builds the package.

python setup.py sdist bdist_wheel

dev:publish Publishes the package to pypi.

twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

makedown-0.0.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

makedown-0.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file makedown-0.0.0.tar.gz.

File metadata

  • Download URL: makedown-0.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for makedown-0.0.0.tar.gz
Algorithm Hash digest
SHA256 3a8f5c44c91a76d9bc94b21bdad27d0e6ad8897b4c6a1702178526648284a0db
MD5 dfaed274b7a0dc429a050a4302a5644d
BLAKE2b-256 1dc1305f26133efbc84c8b60bb901733778eb42c4e60007540f470c09e3f7caf

See more details on using hashes here.

File details

Details for the file makedown-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: makedown-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for makedown-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e93cec15ecc17ff4d084f282a588a1b00ce74a0d26643e7cad650db90a1d43a
MD5 9d75171c7d72a4cec9ac1d6f798b8f93
BLAKE2b-256 b3741df44260707848775030db58055ebd46fd4888ccb82d7228826c2f5c2afc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page