mq-task

(★ 16)

A task runner that executes code blocks in Markdown files based on section titles.

File Explorer

  • .gitignore
  • Cargo.lock
  • Cargo.toml
  • README.md
  • sections.mq

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

dir

View Details ▼

List files.

dir

List files in the current working directory:

tldr ls

View documentation for the original command:

dir

Show the contents of the current directory:

🔍

cargo install

View Details ▼

Build and install a Rust binary.

cargo install {{package}}@{{version}}

Install a package from <https://crates.io> (the version is optional - latest by default):

cargo install --git {{repo_url}}

Install a package from the specified Git repository:

cargo install --git {{repo_url}} --{{branch|tag|rev}} {{branch_name|tag|commit_hash}}

Build from the specified branch/tag/commit when installing from a Git repository:

🔍

just

View Details ▼

Save and run project-specific commands.

just {{recipe}}

Run a recipe specified in the justfile:

just

Start a REPL (interactive shell):

just --init

Initialize new justfile in project root:

🔍

psql

View Details ▼

PostgreSQL client.

psql {{database}}

Connect to the database. By default, it connects to the local socket using port 5432 with the currently logged in user:

psql {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}} {{database}}

Connect to the database on given server host running on given port with given username, without a password prompt:

psql {{[-h|--host]}} {{host}} {{[-p|--port]}} {{port}} {{[-U|--username]}} {{username}} {{[-W|--password]}} {{database}}

Connect to the database; user will be prompted for password:

🔍

redis-cli

View Details ▼

Open a connection to a Redis server.

redis-cli

Connect to the local server:

redis-cli -h {{host}}

Connect to a remote server on the default port (6379):

redis-cli -h {{host}} -p {{port}}

Connect to a remote server specifying a port number:

// repository documentation