stpr 1.0.3 → 1.0.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/cli.js +6 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -776,7 +776,7 @@ async function main() {
|
|
|
776
776
|
const service2 = args[0];
|
|
777
777
|
const tools = await client.listTools({ service: service2 ?? void 0 });
|
|
778
778
|
const formatted = formatToolsForList(tools, verboseFlag);
|
|
779
|
-
if (!
|
|
779
|
+
if (!tools.length) {
|
|
780
780
|
die(
|
|
781
781
|
service2 ? `No skills found for service "${service2}".` : "No skills found."
|
|
782
782
|
);
|
|
@@ -793,6 +793,11 @@ async function main() {
|
|
|
793
793
|
}
|
|
794
794
|
if (!action) {
|
|
795
795
|
const tools = await client.listTools({ service });
|
|
796
|
+
if (!tools.length) {
|
|
797
|
+
die(
|
|
798
|
+
service ? `No skills found for service "${service}".` : "No skills found."
|
|
799
|
+
);
|
|
800
|
+
}
|
|
796
801
|
const formatted = verboseFlag ? formatToolsForList(tools, verboseFlag) : tools.map(({ action: action2 }) => action2);
|
|
797
802
|
console.log(JSON.stringify(formatted, null, 2));
|
|
798
803
|
return;
|