@delfini/cli 0.1.0-rc.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/cli.d.cts ADDED
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Entry point invoked by `bin/delfini.mjs` and by tests.
3
+ *
4
+ * Accepts a process.argv-shape input ([nodePath, scriptPath, ...userArgs]).
5
+ *
6
+ * Subcommand handlers set `process.exitCode` rather than calling
7
+ * `process.exit()` — that lets pending stdout/stderr writes flush and keeps
8
+ * test isolation clean. The bin entry is the only place a hard exit is
9
+ * acceptable, and even there `process.exitCode = N` + a natural return is
10
+ * preferred.
11
+ *
12
+ * On unknown flags, commander's `.exitOverride()` makes it throw
13
+ * `CommanderError` rather than calling `process.exit()`. The bin entry's
14
+ * `.catch()` converts that into a non-zero exit; tests assert on the thrown
15
+ * error directly.
16
+ */
17
+ declare function main(argv: string[]): Promise<void>;
18
+
19
+ export { main };
package/dist/cli.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Entry point invoked by `bin/delfini.mjs` and by tests.
3
+ *
4
+ * Accepts a process.argv-shape input ([nodePath, scriptPath, ...userArgs]).
5
+ *
6
+ * Subcommand handlers set `process.exitCode` rather than calling
7
+ * `process.exit()` — that lets pending stdout/stderr writes flush and keeps
8
+ * test isolation clean. The bin entry is the only place a hard exit is
9
+ * acceptable, and even there `process.exitCode = N` + a natural return is
10
+ * preferred.
11
+ *
12
+ * On unknown flags, commander's `.exitOverride()` makes it throw
13
+ * `CommanderError` rather than calling `process.exit()`. The bin entry's
14
+ * `.catch()` converts that into a non-zero exit; tests assert on the thrown
15
+ * error directly.
16
+ */
17
+ declare function main(argv: string[]): Promise<void>;
18
+
19
+ export { main };
package/dist/cli.js ADDED
@@ -0,0 +1,7 @@
1
+ import {
2
+ main
3
+ } from "./chunk-UGNHP6L5.js";
4
+ import "./chunk-MUW24ZC4.js";
5
+ export {
6
+ main
7
+ };