@kizunajs/swift 2.0.0-beta.2 → 2.0.0-beta.21

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
@@ -10,8 +10,24 @@ pnpm add -D @kizunajs/swift
10
10
 
11
11
  ## Usage
12
12
 
13
+ Name the client in your config, and `kizuna generate` writes it with the rest:
14
+
15
+ ```ts
16
+ import { swiftClient } from '@kizunajs/swift';
17
+
18
+ export default defineConfig({
19
+ routes,
20
+ clients: [
21
+ swiftClient({
22
+ output: '../ios/MyApp/Generated/APIClient.swift',
23
+ namespace: 'API',
24
+ }),
25
+ ],
26
+ });
27
+ ```
28
+
13
29
  ```sh
14
- kizuna-swift generate --config kizuna.config.ts --output ios/MyApp/Generated/APIClient.swift --namespace-name API
30
+ kizuna generate
15
31
  ```
16
32
 
17
33
  ## Documentation
package/dist/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_generator = require("./generator-v_aUFbbV.cjs");
2
+ const require_generator = require("./generator-D8fdPAdY.cjs");
3
3
  let node_fs = require("node:fs");
4
4
  let node_path = require("node:path");
5
5
  let node_util = require("node:util");
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as generateSwiftClient } from "./generator-D2AtmA6u.mjs";
2
+ import { t as generateSwiftClient } from "./generator-BQDx47ez.mjs";
3
3
  import { mkdirSync, writeFileSync } from "node:fs";
4
4
  import { dirname, resolve } from "node:path";
5
5
  import { parseArgs } from "node:util";