@artifactshare/cli 0.1.0 → 0.1.1
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 +1 -6
- package/dist/index.js +5 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { chmod, lstat, mkdir, mkdtemp, readFile, readdir, rename, rm, rmdir, stat, writeFile } from "node:fs/promises";
|
|
3
|
-
import { pathToFileURL } from "node:url";
|
|
4
3
|
import { cli, define, lazy } from "gunshi";
|
|
5
4
|
import { Agent } from "undici";
|
|
6
5
|
import { spawn } from "node:child_process";
|
|
@@ -2540,9 +2539,6 @@ function parentCommandRunner(command) {
|
|
|
2540
2539
|
}
|
|
2541
2540
|
//#endregion
|
|
2542
2541
|
//#region src/index.ts
|
|
2543
|
-
function isCliEntrypoint() {
|
|
2544
|
-
return Boolean(process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href);
|
|
2545
|
-
}
|
|
2546
2542
|
async function main(rawArgv) {
|
|
2547
2543
|
const argv = joinLeadingDashValues(rawArgv);
|
|
2548
2544
|
const command = commandNameFromArgv(argv);
|
|
@@ -3151,11 +3147,9 @@ const doctorDefinition = define({
|
|
|
3151
3147
|
toKebab: true,
|
|
3152
3148
|
args: commonArgs
|
|
3153
3149
|
});
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
});
|
|
3159
|
-
}
|
|
3150
|
+
const cliArgv = process.argv.slice(2);
|
|
3151
|
+
main(cliArgv).catch((error) => {
|
|
3152
|
+
writeFailure("unknown", unexpectedError(error), outputModeFromArgv(cliArgv), 1);
|
|
3153
|
+
});
|
|
3160
3154
|
//#endregion
|
|
3161
|
-
export {
|
|
3155
|
+
export {};
|
package/package.json
CHANGED