The simplest way to run DoMD in your project:
# Navigate to your project directory
cd /path/to/your/project
# Run domd
domd
By default, DoMD will:
package.json
, Makefile
, pyproject.toml
)TODO.md
DoMD automatically detects and analyzes the following file types:
package.json
(npm, yarn)setup.py
, pyproject.toml
, requirements.txt
Makefile
Dockerfile
, docker-compose.yml
composer.json
Cargo.toml
# Scan a specific directory
domd --path /path/to/project
# Exclude specific files/directories
domd --exclude "*.test.js" --exclude "node_modules/*"
# Scan only specific files
domd --include-only "Makefile" --include-only "package.json"
Create a .domdignore
file in your project root to exclude specific commands:
# Ignore specific commands
npm run test:coverage
pytest -xvs
# Ignore using patterns
*coverage*
*test*
To run commands in a Docker container, create a .dodocker
file:
image: python:3.9
volumes:
- .:/app
working_dir: /app
environment:
- PYTHONPATH=/app
# Show what commands would be executed without actually running them
domd --dry-run
# Format JSON
domd --format json
# Format tekstowy
domd --format text
# Format Markdown (domyślny)
domd --format markdown
# Własna ścieżka wyjściowa
domd --output raport.md
# Ustawienie limitu czasu na wykonanie komendy (domyślnie 60s)
domd --timeout 120
Przykładowy plik workflow dla GitHub Actions:
name: DoMD Health Check
on: [push, pull_request]
jobs:
health-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install DoMD
run: pip install domd
- name: Run health check
run: domd --output health-report.md
- name: Upload report
uses: actions/upload-artifact@v3
with:
name: health-report
path: health-report.md
# Przejdź do katalogu projektu
cd moj-projekt
# Uruchom domd
domd
# Sprawdź wygenerowany raport
cat TODO.md
Dodaj do swojego Makefile
:
health-check:
domd --output HEALTH.md
.PHONY: health-check
Jeśli napotkasz błędy podczas wykonywania komend:
--verbose
, aby uzyskać więcej informacjiJeśli znajdziesz błąd lub masz sugestię:
domd --version
)Masz dodatkowe pytania? Sprawdź dokumentację lub zgłoś problem.