|
| 1 | +# Continuous-Delphi PowerShell Tools |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +This repository contains PowerShell utilities used across the |
| 9 | +**Continuous-Delphi** ecosystem. |
| 10 | + |
| 11 | +The goal of these tools is to support consistent, automated workflows |
| 12 | +for maintaining healthy code repositories. |
| 13 | + |
| 14 | +## TL;DR |
| 15 | + |
| 16 | +Quick start: |
| 17 | + |
| 18 | +```powershell |
| 19 | +git clone https://github.com/continuous-delphi/cd-tool-pwsh |
| 20 | +Import-Module ./src/ContinuousDelphi.Tools |
| 21 | +Test-NonAsciiContent -FileSpec *.md -Recurse |
| 22 | +``` |
| 23 | + |
| 24 | +------------------------------------------------------------------------ |
| 25 | + |
| 26 | +# First Tool: Test-NonAsciiContent |
| 27 | + |
| 28 | +The first utility provided by this repository is the PowerShell command: |
| 29 | + |
| 30 | +`Test-NonAsciiContent` |
| 31 | + |
| 32 | +This command scans files for characters outside the ASCII range |
| 33 | +(0x00--0x7F) and reports their location. |
| 34 | + |
| 35 | +Detecting non-ASCII characters is useful for: |
| 36 | + |
| 37 | +- preventing encoding problems |
| 38 | +- avoiding copy-paste typography issues |
| 39 | +- keeping source repositories portable across tools and platforms |
| 40 | +- enforcing consistent text standards in long-lived codebases |
| 41 | + |
| 42 | +Typical use cases include: |
| 43 | + |
| 44 | +- validating repository content |
| 45 | +- pre-commit checks |
| 46 | +- CI pipeline validation |
| 47 | +- enforcing ASCII-only policies in source files |
| 48 | + |
| 49 | +Example usage: |
| 50 | + |
| 51 | +``` powershell |
| 52 | +Test-NonAsciiContent -Path . -FileSpec *.pas,*.ps1,*.md -Recurse |
| 53 | +``` |
| 54 | + |
| 55 | +The command returns objects describing each match, allowing results to |
| 56 | +be filtered, exported, or inspected using standard PowerShell pipelines. |
| 57 | + |
| 58 | +------------------------------------------------------------------------ |
| 59 | + |
| 60 | +# Repository Scope |
| 61 | + |
| 62 | +This repository will contain PowerShell tools that support the |
| 63 | +**Continuous-Delphi** ecosystem, including utilities for: |
| 64 | + |
| 65 | +- repository validation |
| 66 | +- content linting |
| 67 | +- CI workflow helpers |
| 68 | +- developer tooling for Delphi projects |
| 69 | + |
| 70 | +Commands in this repository are intended to be: |
| 71 | + |
| 72 | +- PowerShell-native (Verb-Noun) |
| 73 | +- pipeline-friendly |
| 74 | +- automation-ready |
| 75 | +- compatible with PowerShell 7+ |
| 76 | + |
| 77 | +------------------------------------------------------------------------ |
| 78 | + |
| 79 | +# Installation (Development) |
| 80 | + |
| 81 | +Until a packaged distribution is provided, the module can be loaded |
| 82 | +directly from the repository: |
| 83 | + |
| 84 | +``` powershell |
| 85 | +Import-Module ./ContinuousDelphi.Tools |
| 86 | +``` |
| 87 | + |
| 88 | +Once imported, the commands become available in the current session. |
| 89 | + |
| 90 | +--- |
| 91 | + |
| 92 | +## Part of Continuous Delphi |
| 93 | + |
| 94 | +This repository follows the `Continuous Delphi` organization taxonomy. See |
| 95 | +[cd-meta-org](https://github.com/continuous-delphi/cd-meta-org) for navigation and governance. |
| 96 | + |
| 97 | +- `docs/org-taxonomy.md` -- naming and tagging conventions |
| 98 | +- `docs/versioning-policy.md` -- release and versioning rules |
| 99 | +- `docs/repo-lifecycle.md` -- lifecycle states and graduation criteria |
| 100 | + |
0 commit comments