aasvg 1.0.0

Convert ASCII art diagrams to SVG with automatic light/dark mode support
Documentation
#!/bin/sh
if [ "$1" = "install" ]; then
  if hash realpath; then
    source="$(realpath "$0")"
  else
    p="$(cd "$(dirname "$0")"; pwd)"
    f="$(basename "$0")"
    source="$p/$f"
  fi
  target="$(git rev-parse --git-dir 2>/dev/null)"/hooks/pre-commit
  [ -f "$target" ] || ln -s "$source" "$target"
  exit
fi

# Regenerate example.svg and conformance test outputs
cargo run -p aasvg-cli -- example.txt > example.svg 2>/dev/null
for f in tests/conformance/*.txt; do
  name=$(basename "$f" .txt)
  cargo run -p aasvg-cli -- "$f" > "tests/conformance/${name}.rust.svg" 2>/dev/null
done

# Stage regenerated files if they changed
git add example.svg tests/conformance/*.rust.svg 2>/dev/null

# Run tests
cargo test