@openfairygui/cli 0.2.0-alpha.9 → 0.3.0-alpha.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 +4 -0
- package/dist/cli.mjs +18877 -14446
- package/package.json +7 -5
- package/src/cli.ts +30 -535
- package/src/commands/backend-capabilities.ts +37 -0
- package/src/commands/inspect.ts +44 -0
- package/src/commands/publish.ts +67 -0
- package/src/commands/restore.ts +49 -0
- package/src/utils/package-version.ts +23 -0
- package/src/utils/project-input.ts +26 -0
- package/src/utils/project-type.ts +31 -0
package/README.md
CHANGED
|
@@ -14,9 +14,13 @@ npm install --global @openfairygui/cli
|
|
|
14
14
|
ofgui --help
|
|
15
15
|
ofgui inspect ./MyProject
|
|
16
16
|
ofgui publish ./MyProject --output ./release
|
|
17
|
+
# Trusted-local recovery only; this is not a normal authoring workflow.
|
|
17
18
|
ofgui restore ./release --output ./restored-project
|
|
18
19
|
```
|
|
19
20
|
|
|
21
|
+
`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
|
+
The command only parses CLI input and delegates Node filesystem and Sharp image handling to `restoreNode()` from `@openfairygui/functions/node`.
|
|
23
|
+
|
|
20
24
|
The package also keeps `openfairygui` as a compatibility alias for the CLI command.
|
|
21
25
|
|
|
22
26
|
Repository:
|