@starci/cli 1.0.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/CHANGELOG.md +7 -0
- package/README.md +8 -0
- package/bin/starci.mjs +18 -0
- package/completions/_starci +1171 -0
- package/completions/starci.bash +1145 -0
- package/completions/starci.fish +1343 -0
- package/completions/starci.ps1 +1151 -0
- package/package.json +33 -0
- package/src/catalog.generated.mjs +14680 -0
- package/src/completion.mjs +17 -0
- package/src/help.mjs +84 -0
- package/src/main.mjs +265 -0
- package/src/package-entry.spec.mjs +83 -0
- package/src/runtime-install.mjs +110 -0
- package/src/runtime-link.mjs +71 -0
- package/src/runtime-locate.mjs +54 -0
- package/src/shim.mjs +82 -0
- package/src/validate-args.mjs +170 -0
package/CHANGELOG.md
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# @starci/cli
|
|
2
|
+
|
|
3
|
+
`starci` is the single catalog-driven command line for StarCi. Product repositories use
|
|
4
|
+
`starci app ...`; runtime operations use the `workflow`, `kernel`, `runtime`, `supervisor`, and
|
|
5
|
+
`debug` groups.
|
|
6
|
+
|
|
7
|
+
Install the package as an exact development dependency, then run `starci help`. Runtime commands
|
|
8
|
+
locate an installed StarCi tree automatically. If none exists, run `starci runtime install`.
|
package/bin/starci.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import process from 'node:process';
|
|
3
|
+
import { main } from '../src/main.mjs';
|
|
4
|
+
|
|
5
|
+
// A reader that closes early (`starci help | head`) is not an error worth a stack trace.
|
|
6
|
+
for (const stream of [process.stdout, process.stderr]) {
|
|
7
|
+
stream.on('error', (error) => {
|
|
8
|
+
if (error?.code === 'EPIPE') process.exit(process.exitCode ?? 0);
|
|
9
|
+
throw error;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
try {
|
|
14
|
+
process.exitCode = await main(process.argv.slice(2));
|
|
15
|
+
} catch (error) {
|
|
16
|
+
process.stderr.write(`starci: ${error?.message ?? error}\n`);
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
}
|