@zseven-w/openpencil 0.5.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.de.md ADDED
@@ -0,0 +1,132 @@
1
+ # @zseven-w/openpencil
2
+
3
+ [English](./README.md) · [简体中文](./README.zh.md) · [繁體中文](./README.zh-TW.md) · [日本語](./README.ja.md) · [한국어](./README.ko.md) · [Français](./README.fr.md) · [Español](./README.es.md) · [**Deutsch**](./README.de.md) · [Português](./README.pt.md) · [Русский](./README.ru.md) · [हिन्दी](./README.hi.md) · [Türkçe](./README.tr.md) · [ไทย](./README.th.md) · [Tiếng Việt](./README.vi.md) · [Bahasa Indonesia](./README.id.md)
4
+
5
+ CLI fuer [OpenPencil](https://github.com/ZSeven-W/openpencil) — steuere das Design-Tool von deinem Terminal aus.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install -g @zseven-w/openpencil
11
+ ```
12
+
13
+ ## Plattformunterstuetzung
14
+
15
+ Das CLI erkennt und startet die OpenPencil-Desktop-App automatisch auf allen Plattformen:
16
+
17
+ | Plattform | Erkannte Installationspfade |
18
+ | ----------- | --------------------------------------------------------------------------------------------------- |
19
+ | **macOS** | `/Applications/OpenPencil.app`, `~/Applications/OpenPencil.app` |
20
+ | **Windows** | NSIS pro Benutzer (`%LOCALAPPDATA%`), systemweit (`%PROGRAMFILES%`), portabel |
21
+ | **Linux** | `/usr/bin`, `/usr/local/bin`, `~/.local/bin`, AppImage (`~/Applications`, `~/Downloads`), Snap, Flatpak |
22
+
23
+ ## Verwendung
24
+
25
+ ```bash
26
+ op <Befehl> [Optionen]
27
+ ```
28
+
29
+ ### Eingabemethoden
30
+
31
+ Argumente, die JSON oder DSL akzeptieren, koennen auf drei Arten uebergeben werden:
32
+
33
+ ```bash
34
+ op design '...' # Inline-Zeichenkette (kleine Nutzlasten)
35
+ op design @design.txt # Aus Datei lesen (empfohlen fuer grosse Designs)
36
+ cat design.txt | op design - # Von stdin lesen (Piping)
37
+ ```
38
+
39
+ ### App-Steuerung
40
+
41
+ ```bash
42
+ op start [--desktop|--web] # OpenPencil starten (standardmaessig Desktop)
43
+ op stop # Laufende Instanz beenden
44
+ op status # Pruefen, ob die App laeuft
45
+ ```
46
+
47
+ ### Design (Batch-DSL)
48
+
49
+ ```bash
50
+ op design <dsl|@file|-> [--post-process] [--canvas-width N]
51
+ op design:skeleton <json|@file|->
52
+ op design:content <section-id> <json|@file|->
53
+ op design:refine --root-id <id>
54
+ ```
55
+
56
+ ### Dokumentoperationen
57
+
58
+ ```bash
59
+ op open [file.op] # Datei oeffnen oder mit aktivem Canvas verbinden
60
+ op save <file.op> # Aktuelles Dokument speichern
61
+ op get [--type X] [--name Y] [--id Z] [--depth N]
62
+ op selection # Aktuelle Canvas-Auswahl abrufen
63
+ ```
64
+
65
+ ### Knotenmanipulation
66
+
67
+ ```bash
68
+ op insert <json> [--parent P] [--index N] [--post-process]
69
+ op update <id> <json> [--post-process]
70
+ op delete <id>
71
+ op move <id> --parent <P> [--index N]
72
+ op copy <id> [--parent P]
73
+ op replace <id> <json> [--post-process]
74
+ ```
75
+
76
+ ### Code-Export
77
+
78
+ ```bash
79
+ op export <format> [--out file]
80
+ # Formate: react, html, vue, svelte, flutter, swiftui, compose, rn, css
81
+ ```
82
+
83
+ ### Variablen und Themes
84
+
85
+ ```bash
86
+ op vars # Variablen abrufen
87
+ op vars:set <json> # Variablen setzen
88
+ op themes # Themes abrufen
89
+ op themes:set <json> # Themes setzen
90
+ op theme:save <file.optheme> # Theme-Preset speichern
91
+ op theme:load <file.optheme> # Theme-Preset laden
92
+ op theme:list [dir] # Theme-Presets auflisten
93
+ ```
94
+
95
+ ### Seiten
96
+
97
+ ```bash
98
+ op page list # Seiten auflisten
99
+ op page add [--name N] # Eine Seite hinzufuegen
100
+ op page remove <id> # Eine Seite entfernen
101
+ op page rename <id> <name> # Eine Seite umbenennen
102
+ op page reorder <id> <index> # Eine Seite neu anordnen
103
+ op page duplicate <id> # Eine Seite duplizieren
104
+ ```
105
+
106
+ ### Import
107
+
108
+ ```bash
109
+ op import:svg <file.svg> # SVG-Datei importieren
110
+ op import:figma <file.fig> # Figma-.fig-Datei importieren
111
+ ```
112
+
113
+ ### Layout
114
+
115
+ ```bash
116
+ op layout [--parent P] [--depth N]
117
+ op find-space [--direction right|bottom|left|top]
118
+ ```
119
+
120
+ ### Globale Optionen
121
+
122
+ ```text
123
+ --file <path> Ziel-.op-Datei (Standard: aktives Canvas)
124
+ --page <id> Zielseiten-ID
125
+ --pretty Menschenlesbare JSON-Ausgabe
126
+ --help Hilfe anzeigen
127
+ --version Version anzeigen
128
+ ```
129
+
130
+ ## Lizenz
131
+
132
+ MIT
package/README.es.md ADDED
@@ -0,0 +1,132 @@
1
+ # @zseven-w/openpencil
2
+
3
+ [English](./README.md) · [简体中文](./README.zh.md) · [繁體中文](./README.zh-TW.md) · [日本語](./README.ja.md) · [한국어](./README.ko.md) · [Français](./README.fr.md) · [**Español**](./README.es.md) · [Deutsch](./README.de.md) · [Português](./README.pt.md) · [Русский](./README.ru.md) · [हिन्दी](./README.hi.md) · [Türkçe](./README.tr.md) · [ไทย](./README.th.md) · [Tiếng Việt](./README.vi.md) · [Bahasa Indonesia](./README.id.md)
4
+
5
+ CLI para [OpenPencil](https://github.com/ZSeven-W/openpencil) — controla la herramienta de diseno desde tu terminal.
6
+
7
+ ## Instalacion
8
+
9
+ ```bash
10
+ npm install -g @zseven-w/openpencil
11
+ ```
12
+
13
+ ## Soporte de plataformas
14
+
15
+ El CLI detecta y lanza automaticamente la aplicacion de escritorio OpenPencil en todas las plataformas:
16
+
17
+ | Plataforma | Rutas de instalacion detectadas |
18
+ | ----------- | --------------------------------------------------------------------------------------------------- |
19
+ | **macOS** | `/Applications/OpenPencil.app`, `~/Applications/OpenPencil.app` |
20
+ | **Windows** | NSIS por usuario (`%LOCALAPPDATA%`), por maquina (`%PROGRAMFILES%`), portable |
21
+ | **Linux** | `/usr/bin`, `/usr/local/bin`, `~/.local/bin`, AppImage (`~/Applications`, `~/Downloads`), Snap, Flatpak |
22
+
23
+ ## Uso
24
+
25
+ ```bash
26
+ op <comando> [opciones]
27
+ ```
28
+
29
+ ### Metodos de entrada
30
+
31
+ Los argumentos que aceptan JSON o DSL se pueden pasar de tres maneras:
32
+
33
+ ```bash
34
+ op design '...' # Cadena en linea (cargas pequenas)
35
+ op design @design.txt # Leer desde archivo (recomendado para disenos grandes)
36
+ cat design.txt | op design - # Leer desde stdin (tuberia)
37
+ ```
38
+
39
+ ### Control de la aplicacion
40
+
41
+ ```bash
42
+ op start [--desktop|--web] # Iniciar OpenPencil (escritorio por defecto)
43
+ op stop # Detener la instancia en ejecucion
44
+ op status # Verificar si esta en ejecucion
45
+ ```
46
+
47
+ ### Diseno (DSL por lotes)
48
+
49
+ ```bash
50
+ op design <dsl|@file|-> [--post-process] [--canvas-width N]
51
+ op design:skeleton <json|@file|->
52
+ op design:content <section-id> <json|@file|->
53
+ op design:refine --root-id <id>
54
+ ```
55
+
56
+ ### Operaciones de documento
57
+
58
+ ```bash
59
+ op open [file.op] # Abrir archivo o conectar al lienzo activo
60
+ op save <file.op> # Guardar el documento actual
61
+ op get [--type X] [--name Y] [--id Z] [--depth N]
62
+ op selection # Obtener la seleccion actual del lienzo
63
+ ```
64
+
65
+ ### Manipulacion de nodos
66
+
67
+ ```bash
68
+ op insert <json> [--parent P] [--index N] [--post-process]
69
+ op update <id> <json> [--post-process]
70
+ op delete <id>
71
+ op move <id> --parent <P> [--index N]
72
+ op copy <id> [--parent P]
73
+ op replace <id> <json> [--post-process]
74
+ ```
75
+
76
+ ### Exportacion de codigo
77
+
78
+ ```bash
79
+ op export <format> [--out file]
80
+ # Formatos: react, html, vue, svelte, flutter, swiftui, compose, rn, css
81
+ ```
82
+
83
+ ### Variables y temas
84
+
85
+ ```bash
86
+ op vars # Obtener variables
87
+ op vars:set <json> # Establecer variables
88
+ op themes # Obtener temas
89
+ op themes:set <json> # Establecer temas
90
+ op theme:save <file.optheme> # Guardar preset de tema
91
+ op theme:load <file.optheme> # Cargar preset de tema
92
+ op theme:list [dir] # Listar presets de tema
93
+ ```
94
+
95
+ ### Paginas
96
+
97
+ ```bash
98
+ op page list # Listar paginas
99
+ op page add [--name N] # Agregar una pagina
100
+ op page remove <id> # Eliminar una pagina
101
+ op page rename <id> <name> # Renombrar una pagina
102
+ op page reorder <id> <index> # Reordenar una pagina
103
+ op page duplicate <id> # Duplicar una pagina
104
+ ```
105
+
106
+ ### Importacion
107
+
108
+ ```bash
109
+ op import:svg <file.svg> # Importar archivo SVG
110
+ op import:figma <file.fig> # Importar archivo Figma .fig
111
+ ```
112
+
113
+ ### Disposicion
114
+
115
+ ```bash
116
+ op layout [--parent P] [--depth N]
117
+ op find-space [--direction right|bottom|left|top]
118
+ ```
119
+
120
+ ### Opciones globales
121
+
122
+ ```text
123
+ --file <path> Archivo .op de destino (por defecto: lienzo activo)
124
+ --page <id> ID de la pagina de destino
125
+ --pretty Salida JSON legible
126
+ --help Mostrar ayuda
127
+ --version Mostrar version
128
+ ```
129
+
130
+ ## Licencia
131
+
132
+ MIT
package/README.fr.md ADDED
@@ -0,0 +1,132 @@
1
+ # @zseven-w/openpencil
2
+
3
+ [English](./README.md) · [简体中文](./README.zh.md) · [繁體中文](./README.zh-TW.md) · [日本語](./README.ja.md) · [한국어](./README.ko.md) · [**Français**](./README.fr.md) · [Español](./README.es.md) · [Deutsch](./README.de.md) · [Português](./README.pt.md) · [Русский](./README.ru.md) · [हिन्दी](./README.hi.md) · [Türkçe](./README.tr.md) · [ไทย](./README.th.md) · [Tiếng Việt](./README.vi.md) · [Bahasa Indonesia](./README.id.md)
4
+
5
+ CLI pour [OpenPencil](https://github.com/ZSeven-W/openpencil) — controlez l'outil de design depuis votre terminal.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install -g @zseven-w/openpencil
11
+ ```
12
+
13
+ ## Plateformes supportees
14
+
15
+ Le CLI detecte et lance automatiquement l'application de bureau OpenPencil sur toutes les plateformes :
16
+
17
+ | Plateforme | Chemins d'installation detectes |
18
+ | ----------- | --------------------------------------------------------------------------------------------------- |
19
+ | **macOS** | `/Applications/OpenPencil.app`, `~/Applications/OpenPencil.app` |
20
+ | **Windows** | NSIS par utilisateur (`%LOCALAPPDATA%`), par machine (`%PROGRAMFILES%`), portable |
21
+ | **Linux** | `/usr/bin`, `/usr/local/bin`, `~/.local/bin`, AppImage (`~/Applications`, `~/Downloads`), Snap, Flatpak |
22
+
23
+ ## Utilisation
24
+
25
+ ```bash
26
+ op <commande> [options]
27
+ ```
28
+
29
+ ### Methodes de saisie
30
+
31
+ Les arguments acceptant du JSON ou du DSL peuvent etre passes de trois manieres :
32
+
33
+ ```bash
34
+ op design '...' # Chaine en ligne (petites charges)
35
+ op design @design.txt # Lecture depuis un fichier (recommande pour les grands designs)
36
+ cat design.txt | op design - # Lecture depuis stdin (pipe)
37
+ ```
38
+
39
+ ### Controle de l'application
40
+
41
+ ```bash
42
+ op start [--desktop|--web] # Lancer OpenPencil (bureau par defaut)
43
+ op stop # Arreter l'instance en cours
44
+ op status # Verifier si l'application est en cours d'execution
45
+ ```
46
+
47
+ ### Design (DSL par lot)
48
+
49
+ ```bash
50
+ op design <dsl|@file|-> [--post-process] [--canvas-width N]
51
+ op design:skeleton <json|@file|->
52
+ op design:content <section-id> <json|@file|->
53
+ op design:refine --root-id <id>
54
+ ```
55
+
56
+ ### Operations sur les documents
57
+
58
+ ```bash
59
+ op open [file.op] # Ouvrir un fichier ou se connecter au canevas actif
60
+ op save <file.op> # Enregistrer le document actuel
61
+ op get [--type X] [--name Y] [--id Z] [--depth N]
62
+ op selection # Obtenir la selection actuelle du canevas
63
+ ```
64
+
65
+ ### Manipulation des noeuds
66
+
67
+ ```bash
68
+ op insert <json> [--parent P] [--index N] [--post-process]
69
+ op update <id> <json> [--post-process]
70
+ op delete <id>
71
+ op move <id> --parent <P> [--index N]
72
+ op copy <id> [--parent P]
73
+ op replace <id> <json> [--post-process]
74
+ ```
75
+
76
+ ### Export de code
77
+
78
+ ```bash
79
+ op export <format> [--out file]
80
+ # Formats : react, html, vue, svelte, flutter, swiftui, compose, rn, css
81
+ ```
82
+
83
+ ### Variables et themes
84
+
85
+ ```bash
86
+ op vars # Obtenir les variables
87
+ op vars:set <json> # Definir les variables
88
+ op themes # Obtenir les themes
89
+ op themes:set <json> # Definir les themes
90
+ op theme:save <file.optheme> # Enregistrer un preset de theme
91
+ op theme:load <file.optheme> # Charger un preset de theme
92
+ op theme:list [dir] # Lister les presets de theme
93
+ ```
94
+
95
+ ### Pages
96
+
97
+ ```bash
98
+ op page list # Lister les pages
99
+ op page add [--name N] # Ajouter une page
100
+ op page remove <id> # Supprimer une page
101
+ op page rename <id> <name> # Renommer une page
102
+ op page reorder <id> <index> # Reordonner une page
103
+ op page duplicate <id> # Dupliquer une page
104
+ ```
105
+
106
+ ### Importation
107
+
108
+ ```bash
109
+ op import:svg <file.svg> # Importer un fichier SVG
110
+ op import:figma <file.fig> # Importer un fichier Figma .fig
111
+ ```
112
+
113
+ ### Mise en page
114
+
115
+ ```bash
116
+ op layout [--parent P] [--depth N]
117
+ op find-space [--direction right|bottom|left|top]
118
+ ```
119
+
120
+ ### Options globales
121
+
122
+ ```text
123
+ --file <path> Fichier .op cible (par defaut : canevas actif)
124
+ --page <id> ID de la page cible
125
+ --pretty Sortie JSON lisible
126
+ --help Afficher l'aide
127
+ --version Afficher la version
128
+ ```
129
+
130
+ ## Licence
131
+
132
+ MIT
package/README.hi.md ADDED
@@ -0,0 +1,132 @@
1
+ # @zseven-w/openpencil
2
+
3
+ [English](./README.md) · [简体中文](./README.zh.md) · [繁體中文](./README.zh-TW.md) · [日本語](./README.ja.md) · [한국어](./README.ko.md) · [Français](./README.fr.md) · [Español](./README.es.md) · [Deutsch](./README.de.md) · [Português](./README.pt.md) · [Русский](./README.ru.md) · [**हिन्दी**](./README.hi.md) · [Türkçe](./README.tr.md) · [ไทย](./README.th.md) · [Tiếng Việt](./README.vi.md) · [Bahasa Indonesia](./README.id.md)
4
+
5
+ [OpenPencil](https://github.com/ZSeven-W/openpencil) के लिए CLI — अपने टर्मिनल से डिज़ाइन टूल को नियंत्रित करें।
6
+
7
+ ## इंस्टॉल करें
8
+
9
+ ```bash
10
+ npm install -g @zseven-w/openpencil
11
+ ```
12
+
13
+ ## प्लेटफ़ॉर्म समर्थन
14
+
15
+ CLI सभी प्लेटफ़ॉर्म पर OpenPencil डेस्कटॉप ऐप को स्वचालित रूप से पहचानता और लॉन्च करता है:
16
+
17
+ | प्लेटफ़ॉर्म | पहचाने गए इंस्टॉलेशन पथ |
18
+ | ----------- | --------------------------------------------------------------------------------------------------- |
19
+ | **macOS** | `/Applications/OpenPencil.app`, `~/Applications/OpenPencil.app` |
20
+ | **Windows** | NSIS प्रति-उपयोगकर्ता (`%LOCALAPPDATA%`), प्रति-मशीन (`%PROGRAMFILES%`), पोर्टेबल |
21
+ | **Linux** | `/usr/bin`, `/usr/local/bin`, `~/.local/bin`, AppImage (`~/Applications`, `~/Downloads`), Snap, Flatpak |
22
+
23
+ ## उपयोग
24
+
25
+ ```bash
26
+ op <कमांड> [विकल्प]
27
+ ```
28
+
29
+ ### इनपुट विधियाँ
30
+
31
+ JSON या DSL स्वीकार करने वाले आर्गुमेंट तीन तरीकों से पास किए जा सकते हैं:
32
+
33
+ ```bash
34
+ op design '...' # इनलाइन स्ट्रिंग (छोटे पेलोड)
35
+ op design @design.txt # फ़ाइल से पढ़ें (बड़े डिज़ाइन के लिए अनुशंसित)
36
+ cat design.txt | op design - # stdin से पढ़ें (पाइपिंग)
37
+ ```
38
+
39
+ ### ऐप नियंत्रण
40
+
41
+ ```bash
42
+ op start [--desktop|--web] # OpenPencil लॉन्च करें (डिफ़ॉल्ट रूप से डेस्कटॉप)
43
+ op stop # चल रहे इंस्टेंस को बंद करें
44
+ op status # जाँचें कि चल रहा है या नहीं
45
+ ```
46
+
47
+ ### डिज़ाइन (बैच DSL)
48
+
49
+ ```bash
50
+ op design <dsl|@file|-> [--post-process] [--canvas-width N]
51
+ op design:skeleton <json|@file|->
52
+ op design:content <section-id> <json|@file|->
53
+ op design:refine --root-id <id>
54
+ ```
55
+
56
+ ### दस्तावेज़ संचालन
57
+
58
+ ```bash
59
+ op open [file.op] # फ़ाइल खोलें या लाइव कैनवास से कनेक्ट करें
60
+ op save <file.op> # वर्तमान दस्तावेज़ सहेजें
61
+ op get [--type X] [--name Y] [--id Z] [--depth N]
62
+ op selection # वर्तमान कैनवास चयन प्राप्त करें
63
+ ```
64
+
65
+ ### नोड हेरफेर
66
+
67
+ ```bash
68
+ op insert <json> [--parent P] [--index N] [--post-process]
69
+ op update <id> <json> [--post-process]
70
+ op delete <id>
71
+ op move <id> --parent <P> [--index N]
72
+ op copy <id> [--parent P]
73
+ op replace <id> <json> [--post-process]
74
+ ```
75
+
76
+ ### कोड निर्यात
77
+
78
+ ```bash
79
+ op export <format> [--out file]
80
+ # प्रारूप: react, html, vue, svelte, flutter, swiftui, compose, rn, css
81
+ ```
82
+
83
+ ### वेरिएबल और थीम
84
+
85
+ ```bash
86
+ op vars # वेरिएबल प्राप्त करें
87
+ op vars:set <json> # वेरिएबल सेट करें
88
+ op themes # थीम प्राप्त करें
89
+ op themes:set <json> # थीम सेट करें
90
+ op theme:save <file.optheme> # थीम प्रीसेट सहेजें
91
+ op theme:load <file.optheme> # थीम प्रीसेट लोड करें
92
+ op theme:list [dir] # थीम प्रीसेट सूचीबद्ध करें
93
+ ```
94
+
95
+ ### पेज
96
+
97
+ ```bash
98
+ op page list # पेज सूचीबद्ध करें
99
+ op page add [--name N] # एक पेज जोड़ें
100
+ op page remove <id> # एक पेज हटाएँ
101
+ op page rename <id> <name> # एक पेज का नाम बदलें
102
+ op page reorder <id> <index> # एक पेज का क्रम बदलें
103
+ op page duplicate <id> # एक पेज डुप्लिकेट करें
104
+ ```
105
+
106
+ ### आयात
107
+
108
+ ```bash
109
+ op import:svg <file.svg> # SVG फ़ाइल आयात करें
110
+ op import:figma <file.fig> # Figma .fig फ़ाइल आयात करें
111
+ ```
112
+
113
+ ### लेआउट
114
+
115
+ ```bash
116
+ op layout [--parent P] [--depth N]
117
+ op find-space [--direction right|bottom|left|top]
118
+ ```
119
+
120
+ ### वैश्विक फ़्लैग
121
+
122
+ ```text
123
+ --file <path> लक्ष्य .op फ़ाइल (डिफ़ॉल्ट: लाइव कैनवास)
124
+ --page <id> लक्ष्य पेज ID
125
+ --pretty मानव-पठनीय JSON आउटपुट
126
+ --help सहायता दिखाएँ
127
+ --version संस्करण दिखाएँ
128
+ ```
129
+
130
+ ## लाइसेंस
131
+
132
+ MIT
package/README.id.md ADDED
@@ -0,0 +1,132 @@
1
+ # @zseven-w/openpencil
2
+
3
+ [English](./README.md) · [简体中文](./README.zh.md) · [繁體中文](./README.zh-TW.md) · [日本語](./README.ja.md) · [한국어](./README.ko.md) · [Français](./README.fr.md) · [Español](./README.es.md) · [Deutsch](./README.de.md) · [Português](./README.pt.md) · [Русский](./README.ru.md) · [हिन्दी](./README.hi.md) · [Türkçe](./README.tr.md) · [ไทย](./README.th.md) · [Tiếng Việt](./README.vi.md) · [**Bahasa Indonesia**](./README.id.md)
4
+
5
+ CLI untuk [OpenPencil](https://github.com/ZSeven-W/openpencil) — kendalikan alat desain dari terminal Anda.
6
+
7
+ ## Instalasi
8
+
9
+ ```bash
10
+ npm install -g @zseven-w/openpencil
11
+ ```
12
+
13
+ ## Dukungan Platform
14
+
15
+ CLI secara otomatis mendeteksi dan meluncurkan aplikasi desktop OpenPencil di semua platform:
16
+
17
+ | Platform | Jalur instalasi yang terdeteksi |
18
+ | ----------- | --------------------------------------------------------------------------------------------------- |
19
+ | **macOS** | `/Applications/OpenPencil.app`, `~/Applications/OpenPencil.app` |
20
+ | **Windows** | NSIS per-pengguna (`%LOCALAPPDATA%`), per-mesin (`%PROGRAMFILES%`), portabel |
21
+ | **Linux** | `/usr/bin`, `/usr/local/bin`, `~/.local/bin`, AppImage (`~/Applications`, `~/Downloads`), Snap, Flatpak |
22
+
23
+ ## Penggunaan
24
+
25
+ ```bash
26
+ op <perintah> [opsi]
27
+ ```
28
+
29
+ ### Metode Input
30
+
31
+ Argumen yang menerima JSON atau DSL dapat diberikan dengan tiga cara:
32
+
33
+ ```bash
34
+ op design '...' # String inline (data kecil)
35
+ op design @design.txt # Baca dari file (disarankan untuk desain besar)
36
+ cat design.txt | op design - # Baca dari stdin (piping)
37
+ ```
38
+
39
+ ### Kontrol Aplikasi
40
+
41
+ ```bash
42
+ op start [--desktop|--web] # Jalankan OpenPencil (desktop secara default)
43
+ op stop # Hentikan instance yang berjalan
44
+ op status # Periksa apakah sedang berjalan
45
+ ```
46
+
47
+ ### Desain (Batch DSL)
48
+
49
+ ```bash
50
+ op design <dsl|@file|-> [--post-process] [--canvas-width N]
51
+ op design:skeleton <json|@file|->
52
+ op design:content <section-id> <json|@file|->
53
+ op design:refine --root-id <id>
54
+ ```
55
+
56
+ ### Operasi Dokumen
57
+
58
+ ```bash
59
+ op open [file.op] # Buka file atau hubungkan ke kanvas langsung
60
+ op save <file.op> # Simpan dokumen saat ini
61
+ op get [--type X] [--name Y] [--id Z] [--depth N]
62
+ op selection # Dapatkan seleksi kanvas saat ini
63
+ ```
64
+
65
+ ### Manipulasi Node
66
+
67
+ ```bash
68
+ op insert <json> [--parent P] [--index N] [--post-process]
69
+ op update <id> <json> [--post-process]
70
+ op delete <id>
71
+ op move <id> --parent <P> [--index N]
72
+ op copy <id> [--parent P]
73
+ op replace <id> <json> [--post-process]
74
+ ```
75
+
76
+ ### Ekspor Kode
77
+
78
+ ```bash
79
+ op export <format> [--out file]
80
+ # Format: react, html, vue, svelte, flutter, swiftui, compose, rn, css
81
+ ```
82
+
83
+ ### Variabel & Tema
84
+
85
+ ```bash
86
+ op vars # Dapatkan variabel
87
+ op vars:set <json> # Atur variabel
88
+ op themes # Dapatkan tema
89
+ op themes:set <json> # Atur tema
90
+ op theme:save <file.optheme> # Simpan preset tema
91
+ op theme:load <file.optheme> # Muat preset tema
92
+ op theme:list [dir] # Daftar preset tema
93
+ ```
94
+
95
+ ### Halaman
96
+
97
+ ```bash
98
+ op page list # Daftar halaman
99
+ op page add [--name N] # Tambah halaman
100
+ op page remove <id> # Hapus halaman
101
+ op page rename <id> <name> # Ganti nama halaman
102
+ op page reorder <id> <index> # Urutkan ulang halaman
103
+ op page duplicate <id> # Duplikasi halaman
104
+ ```
105
+
106
+ ### Impor
107
+
108
+ ```bash
109
+ op import:svg <file.svg> # Impor file SVG
110
+ op import:figma <file.fig> # Impor file Figma .fig
111
+ ```
112
+
113
+ ### Tata Letak
114
+
115
+ ```bash
116
+ op layout [--parent P] [--depth N]
117
+ op find-space [--direction right|bottom|left|top]
118
+ ```
119
+
120
+ ### Flag Global
121
+
122
+ ```text
123
+ --file <path> File .op target (default: kanvas langsung)
124
+ --page <id> ID halaman target
125
+ --pretty Output JSON yang mudah dibaca
126
+ --help Tampilkan bantuan
127
+ --version Tampilkan versi
128
+ ```
129
+
130
+ ## Lisensi
131
+
132
+ MIT