fresnel-icon 0.1.0 → 0.2.0
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 +22 -0
- package/dist/cli.js +1265 -386
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -11,6 +11,28 @@ npx fresnel-icon export MyApp.icon -o dist [--formats icon,icns,appiconset,png]
|
|
|
11
11
|
npx fresnel-icon mcp [--root dir]
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
Every MCP tool also runs from the command line with the same arguments (`_` becomes `-`) and prints JSON. These lines are generated from the SPEC registry:
|
|
15
|
+
|
|
16
|
+
<!-- spec:cli -->
|
|
17
|
+
```bash
|
|
18
|
+
npx fresnel-icon create <path> [--background <string>] [--dark-background <string>] [--watch] [--overwrite] [--dry-run]
|
|
19
|
+
npx fresnel-icon call icon_inspect <path>
|
|
20
|
+
npx fresnel-icon add-group <path> --name <string> [--index <n>] [--props '<json>'] [--dry-run]
|
|
21
|
+
npx fresnel-icon add-layer <path> --group <string> [--svg <string>] [--source <string>] [--png-base64 <string>] [--file-name <string>] [--name <string>] [--index <n>] [--props '<json>'] [--dry-run]
|
|
22
|
+
npx fresnel-icon set <path> --target <string> --props '<json>' [--appearance dark|tinted] [--platform iOS|macOS|watchOS|square] [--dry-run]
|
|
23
|
+
npx fresnel-icon move <path> --target <string> --index <n> [--to-group <string>] [--dry-run]
|
|
24
|
+
npx fresnel-icon align <path> --targets <string>,… --how left|hcenter|right|top|vcenter|bottom|distribute-horizontal|distribute-vertical [--basis selection|canvas] [--platform iOS|macOS|watchOS|square] [--dry-run]
|
|
25
|
+
npx fresnel-icon remove <path> --target <string> [--dry-run]
|
|
26
|
+
npx fresnel-icon call icon_validate <path>
|
|
27
|
+
npx fresnel-icon call icon_render <path> [--appearance default|dark|clear-light|clear-dark|tinted-light|tinted-dark] [--platform iOS|macOS|watchOS] [--size <n>] [--mask squircle|circle|none] [--tint <string>] [--light-angle <n>] [--out <string>]
|
|
28
|
+
npx fresnel-icon render-sheet <path> [--cell <n>] [--tint <string>] [--out <string>]
|
|
29
|
+
npx fresnel-icon call icon_export <path> --out-dir <string> --formats icon|icns|appiconset|png,… [--sizes <n>,…] [--appearances default|dark|clear-light|clear-dark|tinted-light|tinted-dark,…]
|
|
30
|
+
npx fresnel-icon contract --json
|
|
31
|
+
```
|
|
32
|
+
<!-- /spec:cli -->
|
|
33
|
+
|
|
34
|
+
`fresnel <command> --help` shows each argument and runnable examples. `--args '<json>'` passes all arguments at once.
|
|
35
|
+
|
|
14
36
|
- `validate` exits with code 1 on errors. With `--strict` it also exits 1 on warnings, so you can use it in CI.
|
|
15
37
|
- Raster output uses fresnel's approximate renderer.
|
|
16
38
|
|