@adkit/cli 1.13.11 → 1.13.12
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.js +4 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4569,19 +4569,20 @@ function formatHelpSearch(data) {
|
|
|
4569
4569
|
for (const result of cliData.results) {
|
|
4570
4570
|
lines.push(`adkit ${result.path} --help`);
|
|
4571
4571
|
if (result.description) lines.push(` ${result.description}`);
|
|
4572
|
+
if (result.snippet) lines.push(` \u21B3 ${result.snippet}`);
|
|
4572
4573
|
}
|
|
4573
4574
|
lines.push("", "Each command above opens the matching CLI help.");
|
|
4574
4575
|
return lines.join("\n");
|
|
4575
4576
|
}
|
|
4576
4577
|
function serverHelpPointerToCli(result) {
|
|
4577
4578
|
const override = CLI_HELP_OVERRIDES[result.path];
|
|
4578
|
-
if (override) return { path: override.path, description: override.description || result.description };
|
|
4579
|
+
if (override) return { path: override.path, description: override.description || result.description, snippet: result.snippet };
|
|
4579
4580
|
const negativeListPrefix = "manage google negative-list ";
|
|
4580
4581
|
if (result.path.startsWith(negativeListPrefix)) {
|
|
4581
4582
|
const action = result.path.slice(negativeListPrefix.length);
|
|
4582
|
-
return { path: `manage google keywords negative-lists ${action}`, description: result.description };
|
|
4583
|
+
return { path: `manage google keywords negative-lists ${action}`, description: result.description, snippet: result.snippet };
|
|
4583
4584
|
}
|
|
4584
|
-
if (result.path.startsWith("manage platform-api-request ")) return { path: "manage platform-api-requests", description: result.description };
|
|
4585
|
+
if (result.path.startsWith("manage platform-api-request ")) return { path: "manage platform-api-requests", description: result.description, snippet: result.snippet };
|
|
4585
4586
|
return result;
|
|
4586
4587
|
}
|
|
4587
4588
|
function isHelpSearchResponse(value) {
|
package/package.json
CHANGED