Skip to content

Releases: Open-Technology-Foundation/mdheaders

v1.2.1 - Extended Test Suite

Choose a tag to compare

@GaryDean GaryDean released this 31 Dec 01:34

What's New

Extended test suite from 26 to 46 tests for better coverage.

Added

  • test_errors.sh - 10 tests for error paths and edge cases
  • test_options.sh - 10 tests for options and command aliases
  • tests/run_all.sh - unified test runner with summary
  • tests/fixtures/errors.md - edge case test fixture

Test Coverage Now Includes

  • Missing/multiple input files
  • Empty files and files without headers
  • Unclosed code blocks, indented fences
  • Non-standard headers (no space after #)
  • Multi-level boundary violations
  • Version output, custom backup suffix
  • Command aliases (up/down)
  • Bundled options, quiet/verbose modes

Full Changelog: v1.2.0...v1.2.1

v1.2.0 - Documentation & Tooling

Choose a tag to compare

@GaryDean GaryDean released this 31 Dec 01:04

What's New

Manpage

Full Unix manpage with all commands, options, and examples.

sudo cp mdheaders.1 /usr/share/man/man1/
man mdheaders

Bash Completion

Tab completion for commands, options, and markdown files.

sudo cp mdheaders.bash_completion /etc/bash_completion.d/mdheaders

Improved Documentation

  • Standardized function docstrings
  • Enhanced help text with Behavior section
  • Header comment with license and URL

Installation

# Quick install
sudo curl -fsSL https://raw.githubusercontent.com/Open-Technology-Foundation/mdheaders/main/mdheaders -o /usr/local/bin/mdheaders && sudo chmod +x /usr/local/bin/mdheaders

# Full install (from source)
git clone https://github.com/Open-Technology-Foundation/mdheaders.git
cd mdheaders
sudo cp mdheaders /usr/local/bin/
sudo cp mdheaders.1 /usr/share/man/man1/
sudo cp mdheaders.bash_completion /etc/bash_completion.d/mdheaders

Testing

  • 26/26 tests passing
  • ShellCheck: 0 warnings

v1.1.0 - Single-file Refactor

Choose a tag to compare

@GaryDean GaryDean released this 31 Dec 00:26

What's New

This release refactors mdheaders into a self-contained single-file script for simpler installation and distribution.

Changes

  • Single-file architecture: Merged library into main script — no external dependencies
  • Pure Bash: Replaced seq with native Bash parameter expansion
  • BCS compliance: 100% Bash Coding Standard compliance
  • Performance: Moved local declarations outside loops

Installation

Quick install:

sudo curl -fsSL https://raw.githubusercontent.com/Open-Technology-Foundation/mdheaders/main/mdheaders -o /usr/local/bin/mdheaders && sudo chmod +x /usr/local/bin/mdheaders

From source:

git clone https://github.com/Open-Technology-Foundation/mdheaders.git
sudo cp mdheaders/mdheaders /usr/local/bin/

Testing

  • 26/26 tests passing
  • ShellCheck: 0 warnings