domd 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
domd-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
domd-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,418 @@
1
+ Metadata-Version: 2.3
2
+ Name: domd
3
+ Version: 0.1.0
4
+ Summary: Project Command Detector - Automatically detects and tests project commands, generates TODO.md for failed commands
5
+ License: Apache-2.0
6
+ Author: Tom Sapletta
7
+ Author-email: info@softreck.dev
8
+ Maintainer: WRONAI Team
9
+ Requires-Python: >=3.8.1,<3.14
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Natural Language :: English
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.8
23
+ Classifier: Topic :: Software Development :: Build Tools
24
+ Classifier: Topic :: Software Development :: Quality Assurance
25
+ Classifier: Topic :: Software Development :: Testing
26
+ Classifier: Topic :: System :: Systems Administration
27
+ Provides-Extra: all
28
+ Provides-Extra: cli
29
+ Provides-Extra: colors
30
+ Requires-Dist: click (>=8.1.0,<9.0.0) ; extra == "cli" or extra == "all"
31
+ Requires-Dist: colorama (>=0.4.6,<0.5.0) ; extra == "colors" or extra == "all"
32
+ Requires-Dist: configparser (>=5.3.0,<6.0.0)
33
+ Requires-Dist: pathlib ; python_version >= "3.4"
34
+ Requires-Dist: pyyaml (>=6.0,<7.0)
35
+ Requires-Dist: rich (>=13.0.0,<14.0.0) ; extra == "colors" or extra == "all"
36
+ Requires-Dist: toml (>=0.10.2,<0.11.0)
37
+ Project-URL: Bug Tracker, https://github.com/wronai/domd/issues
38
+ Project-URL: Changelog, https://github.com/wronai/domd/blob/main/CHANGELOG.md
39
+ Project-URL: Documentation, https://wronai.github.io/domd
40
+ Project-URL: Homepage, https://github.com/wronai/domd
41
+ Project-URL: Repository, https://github.com/wronai/domd.git
42
+ Description-Content-Type: text/markdown
43
+
44
+ # TodoMD - Project Command Detector
45
+
46
+ [![PyPI version](https://badge.fury.io/py/domd.svg)](https://badge.fury.io/py/domd)
47
+ [![Python Support](https://img.shields.io/pypi/pyversions/domd.svg)](https://pypi.org/project/domd/)
48
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
49
+ [![Tests](https://github.com/yourusername/domd/workflows/Tests/badge.svg)](https://github.com/yourusername/domd/actions)
50
+
51
+ **TodoMD** automatically detects and tests project commands from various configuration files, then generates a detailed `TODO.md` file for failed commands with error reports and suggested fixes.
52
+
53
+ ## 🚀 Features
54
+
55
+ - **Universal Detection**: Supports 15+ project types and build systems
56
+ - **Smart Testing**: Executes commands with configurable timeouts and error handling
57
+ - **Detailed Reports**: Generates formatted TODO.md with error analysis and fix suggestions
58
+ - **Multiple Formats**: Output in Markdown, JSON, or plain text
59
+ - **CI/CD Ready**: Perfect for automated project health checks
60
+ - **Zero Configuration**: Works out of the box with sensible defaults
61
+
62
+ ## 📦 Supported Project Types
63
+
64
+ ### JavaScript/Node.js
65
+ - `package.json` - npm scripts
66
+ - `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml` - dependency installation
67
+
68
+ ### Python
69
+ - `pyproject.toml` - Poetry scripts, pytest configuration
70
+ - `setup.py` - installation and testing
71
+ - `requirements.txt` - pip installations
72
+ - `tox.ini` - test environments
73
+ - `pytest.ini` - test configuration
74
+
75
+ ### Build Systems
76
+ - `Makefile` - make targets
77
+ - `CMakeLists.txt` - cmake builds
78
+ - `build.gradle` - gradle tasks
79
+ - `pom.xml` - maven goals
80
+
81
+ ### Docker & Containers
82
+ - `Dockerfile` - image builds
83
+ - `docker-compose.yml` - service orchestration
84
+
85
+ ### CI/CD
86
+ - `.github/workflows/*.yml` - GitHub Actions
87
+ - `.gitlab-ci.yml` - GitLab CI
88
+ - `Jenkinsfile` - Jenkins pipelines
89
+
90
+ ### Other Languages
91
+ - `composer.json` (PHP)
92
+ - `Gemfile` (Ruby)
93
+ - `Cargo.toml` (Rust)
94
+ - `go.mod` (Go)
95
+
96
+ ## 🛠 Installation
97
+
98
+ ### Using pip
99
+ ```bash
100
+ pip install domd
101
+ ```
102
+
103
+ ### Using Poetry
104
+ ```bash
105
+ poetry add domd
106
+ ```
107
+
108
+ ### From source
109
+ ```bash
110
+ git clone https://github.com/yourusername/domd.git
111
+ cd domd
112
+ poetry install
113
+ ```
114
+
115
+ ## 📖 Usage
116
+
117
+ ### Basic Usage
118
+ ```bash
119
+ # Scan current directory
120
+ domd
121
+
122
+ # Scan specific project
123
+ domd --path /path/to/project
124
+
125
+ # Preview commands without executing
126
+ domd --dry-run
127
+
128
+ # Custom output file
129
+ domd --output FAILED_COMMANDS.md
130
+ ```
131
+
132
+ ### Advanced Options
133
+ ```bash
134
+ # Verbose output with detailed logging
135
+ domd --verbose
136
+
137
+ # Quiet mode (errors only)
138
+ domd --quiet
139
+
140
+ # Custom timeout (default: 60 seconds)
141
+ domd --timeout 120
142
+
143
+ # Different output formats
144
+ domd --format json
145
+ domd --format text
146
+
147
+ # Exclude specific patterns
148
+ domd --exclude "*.test.js" --exclude "node_modules/*"
149
+
150
+ # Include only specific patterns
151
+ domd --include-only "Makefile" --include-only "package.json"
152
+ ```
153
+
154
+ ### Example Output
155
+
156
+ When commands fail, TodoMD generates a structured TODO.md:
157
+
158
+ ```markdown
159
+ # TODO - Failed Project Commands
160
+
161
+ Automatically generated by TodoMD v0.1.0
162
+ Date: 2025-06-06 10:30:15
163
+ Project: /home/user/my-project
164
+
165
+ Found **2** commands that require fixing:
166
+
167
+ ## Task 1: NPM script - test
168
+
169
+ **Source:** `package.json`
170
+ **Return Code:** 1
171
+
172
+ ### Command to fix:
173
+ ```bash
174
+ npm run test
175
+ ```
176
+
177
+ ### Error:
178
+ ```
179
+ Error: Cannot find module 'jest'
180
+ npm ERR! Test failed. See above for more details.
181
+ ```
182
+
183
+ ### Suggested Actions:
184
+ - [ ] Install missing dependencies: `npm install`
185
+ - [ ] Check if jest is in devDependencies
186
+ - [ ] Verify test configuration
187
+ - [ ] Run `npm install --save-dev jest` if missing
188
+
189
+ ---
190
+
191
+ ## Task 2: Make target - build
192
+
193
+ **Source:** `Makefile`
194
+ **Return Code:** 2
195
+
196
+ ### Command to fix:
197
+ ```bash
198
+ make build
199
+ ```
200
+
201
+ ### Error:
202
+ ```
203
+ make: *** No rule to make target 'src/main.c', needed by 'build'. Stop.
204
+ ```
205
+
206
+ ### Suggested Actions:
207
+ - [ ] Check if source files exist
208
+ - [ ] Verify Makefile paths and dependencies
209
+ - [ ] Review build configuration
210
+ - [ ] Ensure all required files are present
211
+ ```
212
+
213
+ ## 🔧 Configuration
214
+
215
+ ### Command Line Options
216
+
217
+ | Option | Description | Default |
218
+ |--------|-------------|---------|
219
+ | `--path`, `-p` | Project directory path | `.` (current) |
220
+ | `--dry-run`, `-d` | Preview mode (no execution) | `False` |
221
+ | `--verbose`, `-v` | Detailed output | `False` |
222
+ | `--quiet`, `-q` | Suppress output except errors | `False` |
223
+ | `--output`, `-o` | Output file path | `TODO.md` |
224
+ | `--format` | Output format (markdown/json/text) | `markdown` |
225
+ | `--timeout` | Command timeout in seconds | `60` |
226
+ | `--exclude` | Exclude file patterns | `None` |
227
+ | `--include-only` | Include only specific patterns | `None` |
228
+
229
+ ## 🤖 Programmatic Usage
230
+
231
+ ```python
232
+ from domd import ProjectCommandDetector
233
+
234
+ # Initialize detector
235
+ detector = ProjectCommandDetector(
236
+ project_path="./my-project",
237
+ timeout=60,
238
+ exclude_patterns=["*.pyc", "__pycache__/*"]
239
+ )
240
+
241
+ # Scan for commands
242
+ commands = detector.scan_project()
243
+ print(f"Found {len(commands)} commands")
244
+
245
+ # Test commands
246
+ detector.test_commands(commands)
247
+
248
+ # Generate report
249
+ detector.generate_output_file("RESULTS.md", "markdown")
250
+
251
+ # Access results
252
+ failed_commands = detector.failed_commands
253
+ success_rate = (len(commands) - len(failed_commands)) / len(commands) * 100
254
+ print(f"Success rate: {success_rate:.1f}%")
255
+ ```
256
+
257
+ ## 🧪 Development
258
+
259
+ ### Setup Development Environment
260
+ ```bash
261
+ git clone https://github.com/yourusername/domd.git
262
+ cd domd
263
+ poetry install --with dev,docs,testing
264
+
265
+ # Install pre-commit hooks
266
+ poetry run pre-commit install
267
+ ```
268
+
269
+ ### Running Tests
270
+ ```bash
271
+ # Run all tests
272
+ poetry run pytest
273
+
274
+ # Run with coverage
275
+ poetry run pytest --cov=domd --cov-report=html
276
+
277
+ # Run specific test categories
278
+ poetry run pytest -m "unit"
279
+ poetry run pytest -m "integration"
280
+ ```
281
+
282
+ ### Code Quality
283
+ ```bash
284
+ # Format code
285
+ poetry run black src/ tests/
286
+ poetry run isort src/ tests/
287
+
288
+ # Linting
289
+ poetry run flake8 src/ tests/
290
+ poetry run mypy src/
291
+
292
+ # All quality checks
293
+ make lint
294
+ ```
295
+
296
+ ### Building Documentation
297
+ ```bash
298
+ # Serve locally
299
+ poetry run mkdocs serve
300
+
301
+ # Build static site
302
+ poetry run mkdocs build
303
+ ```
304
+
305
+ ## 🤝 Contributing
306
+
307
+ Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
308
+
309
+ ### Adding New Parsers
310
+
311
+ To add support for a new project type:
312
+
313
+ 1. Create a parser in `src/domd/parsers/`
314
+ 2. Implement the parser interface
315
+ 3. Add tests in `tests/parsers/`
316
+ 4. Update documentation
317
+
318
+ Example parser structure:
319
+ ```python
320
+ from .base import BaseParser
321
+
322
+ class NewProjectParser(BaseParser):
323
+ def can_parse(self, file_path: Path) -> bool:
324
+ return file_path.name == "config.yaml"
325
+
326
+ def parse_commands(self, file_path: Path) -> List[Dict]:
327
+ # Implementation here
328
+ pass
329
+ ```
330
+
331
+ ## 📄 License
332
+
333
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
334
+
335
+ ## 🙏 Acknowledgments
336
+
337
+ - Inspired by the need for automated project health monitoring
338
+ - Built with [Poetry](https://python-poetry.org/) for dependency management
339
+ - Uses [pytest](https://pytest.org/) for testing framework
340
+ - Documentation powered by [MkDocs](https://www.mkdocs.org/)
341
+
342
+ ## 📊 Project Stats
343
+
344
+ - **Languages Supported**: 10+
345
+ - **File Types Detected**: 20+
346
+ - **Command Types**: 50+
347
+ - **Python Versions**: 3.8+
348
+
349
+ ## 🔗 Links
350
+
351
+ - [Documentation](https://domd.readthedocs.io)
352
+ - [PyPI Package](https://pypi.org/project/domd/)
353
+ - [GitHub Repository](https://github.com/yourusername/domd)
354
+ - [Issue Tracker](https://github.com/yourusername/domd/issues)
355
+ - [Changelog](https://github.com/yourusername/domd/blob/main/CHANGELOG.md)
356
+
357
+ ## 💡 Use Cases
358
+
359
+ - **Pre-deployment Checks**: Verify all project commands work before deployment
360
+ - **CI/CD Integration**: Add as a quality gate in your pipeline
361
+ - **Onboarding**: Help new developers identify setup issues
362
+ - **Project Maintenance**: Regular health checks for legacy projects
363
+ - **Documentation**: Generate comprehensive command documentation
364
+
365
+ ## ⚡ Quick Examples
366
+
367
+ ### CI/CD Integration (GitHub Actions)
368
+ ```yaml
369
+ name: Project Health Check
370
+ on: [push, pull_request]
371
+
372
+ jobs:
373
+ health-check:
374
+ runs-on: ubuntu-latest
375
+ steps:
376
+ - uses: actions/checkout@v3
377
+ - name: Setup Python
378
+ uses: actions/setup-python@v4
379
+ with:
380
+ python-version: '3.9'
381
+ - name: Install TodoMD
382
+ run: pip install domd
383
+ - name: Run Project Health Check
384
+ run: domd --verbose
385
+ - name: Upload TODO.md if failures
386
+ if: failure()
387
+ uses: actions/upload-artifact@v3
388
+ with:
389
+ name: failed-commands
390
+ path: TODO.md
391
+ ```
392
+
393
+ ### Make Integration
394
+ ```makefile
395
+ .PHONY: health-check
396
+ health-check:
397
+ @echo "Running project health check..."
398
+ @domd --quiet || (echo "❌ Some commands failed. Check TODO.md" && exit 1)
399
+ @echo "✅ All project commands working!"
400
+
401
+ .PHONY: health-report
402
+ health-report:
403
+ @domd --dry-run --verbose
404
+ ```
405
+
406
+ ### Pre-commit Hook
407
+ ```yaml
408
+ # .pre-commit-config.yaml
409
+ repos:
410
+ - repo: local
411
+ hooks:
412
+ - id: domd-check
413
+ name: Project Command Health Check
414
+ entry: domd
415
+ language: system
416
+ pass_filenames: false
417
+ always_run: true
418
+ ```