@openfairygui/cli 0.3.0-alpha.1 → 0.3.0-alpha.2

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 CHANGED
@@ -13,11 +13,15 @@ npm install --global @openfairygui/cli
13
13
  ```bash
14
14
  ofgui --help
15
15
  ofgui inspect ./MyProject
16
+ ofgui validate ./MyProject
17
+ ofgui validate ./MyProject --json
16
18
  ofgui publish ./MyProject --output ./release
17
19
  # Trusted-local recovery only; this is not a normal authoring workflow.
18
20
  ofgui restore ./release --output ./restored-project
19
21
  ```
20
22
 
23
+ `validate` is read-only. It exits with `0` for `valid`, `1` for `invalid`, and `2` for `incomplete`; `--json` prints the stable `ProjectValidationReport` for CI and tools.
24
+
21
25
  `restore` accepts a publish directory and writes a new project directory. It validates artifact paths and completes a staged write before `--force` replaces an existing output; it does not make untrusted artifacts safe or recover the original source project.
22
26
  The command only parses CLI input and delegates Node filesystem and Sharp image handling to `restoreNode()` from `@openfairygui/functions/node`.
23
27