@takuhon/cli 0.7.0 → 0.8.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/dist/index.d.ts +22 -0
- package/dist/index.js +1594 -18
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* `@takuhon/cli` entry point — the `takuhon` command.
|
|
4
|
+
*
|
|
5
|
+
* Exposes `--version` / `--help`, the local profile commands (`validate`,
|
|
6
|
+
* `migrate`, `restore`, `export`, `import`, `build`, `dev`), and a pointer to
|
|
7
|
+
* `create-takuhon` for scaffolding. The `sync` subcommand lands in a subsequent
|
|
8
|
+
* release.
|
|
9
|
+
*
|
|
10
|
+
* `main` is pure (returns an exit code, never calls `process.exit`); the only
|
|
11
|
+
* place that exits the process is {@link run}, invoked either when this module
|
|
12
|
+
* is the entry script or by the bare-name `takuhon` package's `bin.mjs`, which
|
|
13
|
+
* imports and calls `run()`. Keeping `process.exit` at that single boundary
|
|
14
|
+
* lets tests import this module without terminating the test runner.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Process entry point: run {@link main} and exit with its code. This is the
|
|
18
|
+
* only function that calls `process.exit`. Exported so the bare-name
|
|
19
|
+
* `takuhon` package can invoke it after importing this module.
|
|
20
|
+
*/
|
|
21
|
+
declare function run(argv?: readonly string[]): Promise<void>;
|
|
22
|
+
|
|
23
|
+
export { run };
|