@baron1996/klinecharts-cli 0.2.3 → 0.4.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 +16 -0
- package/dist/cli.d.ts +2 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +20402 -250
- package/dist/commands/drawings.d.ts +14 -0
- package/dist/commands/drawings.d.ts.map +1 -0
- package/dist/commands/workspace.d.ts +11 -0
- package/dist/commands/workspace.d.ts.map +1 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/files.d.ts +3 -1
- package/dist/files.d.ts.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -16,5 +16,21 @@ baron-kline render scene.json --format html --output scene.html
|
|
|
16
16
|
baron-kline render scene.json --format png --output scene.png
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
DrawableWorkspace files have an explicit `workspace` namespace. Raw Scene commands
|
|
20
|
+
reject Workspace inputs and Workspace commands reject raw Scenes; there is no
|
|
21
|
+
automatic root-type guessing.
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
baron-kline workspace validate workspace.json
|
|
25
|
+
baron-kline workspace inspect workspace.json --json
|
|
26
|
+
baron-kline workspace drawings list workspace.json
|
|
27
|
+
baron-kline workspace drawings get workspace.json --id drawing-001
|
|
28
|
+
baron-kline workspace drawings add workspace.json --drawing drawing.json --output next.json
|
|
29
|
+
baron-kline workspace drawings replace workspace.json --drawing drawing.json --output next.json
|
|
30
|
+
baron-kline workspace drawings remove workspace.json --id drawing-001 --output next.json
|
|
31
|
+
baron-kline workspace render workspace.json --format html --output chart.html
|
|
32
|
+
baron-kline workspace render workspace.json --format png --output chart.png
|
|
33
|
+
```
|
|
34
|
+
|
|
19
35
|
Commands never overwrite an input scene. Replacing an existing output requires
|
|
20
36
|
`--force`.
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/** CLI 包版本,必须与公共 npm 与 Python 包版本一致。 */
|
|
3
|
-
export declare const CLI_PACKAGE_VERSION: "0.
|
|
3
|
+
export declare const CLI_PACKAGE_VERSION: "0.4.0";
|
|
4
4
|
/** 场景协议包版本,与首版 Runtime 版本保持一致。 */
|
|
5
|
-
export declare const SCENE_PACKAGE_VERSION: "0.
|
|
5
|
+
export declare const SCENE_PACKAGE_VERSION: "0.4.0";
|
|
6
6
|
export declare function main(arguments_?: readonly string[]): Promise<void>;
|
|
7
7
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAoBA,wCAAwC;AACxC,eAAO,MAAM,mBAAmB,EAAG,OAAgB,CAAC;AACpD,kCAAkC;AAClC,eAAO,MAAM,qBAAqB,EAAG,OAAgB,CAAC;AAiDtD,wBAAsB,IAAI,CAAC,UAAU,GAAE,SAAS,MAAM,EAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAkD/F"}
|