c456-cli 0.1.2 → 0.1.4
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.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command as Command7 } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "c456-cli",
|
|
9
|
-
version: "0.1.
|
|
9
|
+
version: "0.1.4",
|
|
10
10
|
description: "C456 CLI - \u5185\u5BB9\u5F55\u5165\u4E0E\u6574\u7406\u5DE5\u5177",
|
|
11
11
|
type: "module",
|
|
12
12
|
bin: {
|
|
@@ -296,6 +296,8 @@ intake.command("new").description("\u521B\u5EFA\u65B0\u6536\u5F55").option("-u,
|
|
|
296
296
|
console.log(` ID: ${result.data.id}`);
|
|
297
297
|
console.log(` \u7C7B\u578B\uFF1A${result.data.kind}`);
|
|
298
298
|
console.log(` \u6807\u9898\uFF1A${result.data.title || "(\u65E0)"}`);
|
|
299
|
+
console.log("\n--- JSON ---");
|
|
300
|
+
console.log(JSON.stringify(result.data, null, 2));
|
|
299
301
|
} catch (err) {
|
|
300
302
|
console.error(`\u274C \u521B\u5EFA\u5931\u8D25\uFF1A${err.message}`);
|
|
301
303
|
const kind = String(opts.kind ?? "signal");
|
|
@@ -441,7 +443,7 @@ fetchProfile.command("profile").description("\u6293\u53D6\u6307\u5B9A URL \u7684
|
|
|
441
443
|
process.exit(1);
|
|
442
444
|
}
|
|
443
445
|
});
|
|
444
|
-
fetchProfile.command("detect").description("\u81EA\u52A8\
|
|
446
|
+
fetchProfile.command("detect").description("\u521B\u5EFA tool \u6536\u5F55\u5E76\u5C1D\u8BD5\u81EA\u52A8\u89E3\u6790\u8D44\u6599\uFF08\u4E0D\u662F profile_id \u81EA\u52A8\u63A8\u65AD\uFF1B\u793E\u4EA4\u8D26\u53F7\u8BF7\u7528 fetch profile -p social_account\uFF09").requiredOption("-u, --url <url>", "\u76EE\u6807 URL").action(async (opts, cmd) => {
|
|
445
447
|
const { apiKey, client } = resolveApi(cmd);
|
|
446
448
|
if (!apiKey) {
|
|
447
449
|
console.error("\u9519\u8BEF\uFF1A\u672A\u914D\u7F6E API Key");
|