beliq-cli 0.1.0 → 0.1.1
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.
- package/README.md +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,12 +67,15 @@ The exit code is the contract that makes it useful in scripts and CI:
|
|
|
67
67
|
Validate every invoice a build produces and fail on a non-compliant one:
|
|
68
68
|
|
|
69
69
|
```yaml
|
|
70
|
-
- run:
|
|
70
|
+
- run: |
|
|
71
|
+
for f in dist/invoices/*.xml; do
|
|
72
|
+
npx beliq-cli validate "$f" --fail-on error
|
|
73
|
+
done
|
|
71
74
|
env:
|
|
72
75
|
BELIQ_API_KEY: ${{ secrets.BELIQ_API_KEY }}
|
|
73
76
|
```
|
|
74
77
|
|
|
75
|
-
|
|
78
|
+
`beliq validate` takes one file (or `-` for stdin), so the shell expands the glob and the step fails on the first non-compliant document. For glob handling, a per-file step summary, and job outputs, use the GitHub Action `beliq-eu/beliq-validate-action`.
|
|
76
79
|
|
|
77
80
|
## Development
|
|
78
81
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beliq-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "beliq CLI: validate, generate, parse, and convert EU e-invoices (XRechnung, ZUGFeRD, Factur-X, Peppol BIS) against authority-pinned, drift-checked rules, from the terminal or CI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|