diff --git a/src/runtime/runtime.ts b/src/runtime/runtime.ts index ec8da70f..8e7ebbf0 100644 --- a/src/runtime/runtime.ts +++ b/src/runtime/runtime.ts @@ -21,7 +21,7 @@ import { specResourcesPath } from "../utils/constants.js"; // eslint-disable-next-line @typescript-eslint/no-explicit-any -- recursive type, setting as any const specSet: any = {}; const ignoredSpecs = ["gcloud", "az", "aws"]; -const speclist = figSpecList.filter((spec: string) => !ignoredSpecs.some((name) => spec.startsWith(name + "/"))); +const speclist = figSpecList.filter((spec: string) => !ignoredSpecs.some((name) => spec === name || spec.startsWith(name + "/"))); const versionedSpeclist = figVersionedSpeclist.filter((spec: string) => !ignoredSpecs.some((name) => spec.startsWith(name))); function loadSpecsSet(speclist: string[], versionedSpeclist: string[], specsPath: string) { diff --git a/src/tests/runtime/__snapshots__/runtime.test.ts.snap b/src/tests/runtime/__snapshots__/runtime.test.ts.snap index c6912cd6..907f5dcd 100644 --- a/src/tests/runtime/__snapshots__/runtime.test.ts.snap +++ b/src/tests/runtime/__snapshots__/runtime.test.ts.snap @@ -529,31 +529,6 @@ exports[`parseCommand generatorUsingPartialInput 1`] = ` } `; -exports[`parseCommand loadSpec 1`] = ` -{ - "activeToken": { - "complete": false, - "isOption": false, - "token": "add", - "tokenLength": 3, - }, - "suggestions": [ - { - "allNames": [ - "add-tags-to-certificate", - ], - "description": "Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify and organize your Amazon Web Services resources. Each tag consists of a key and an optional value. You specify the certificate on input by its Amazon Resource Name (ARN). You specify the tag by using a key-value pair. You can apply a tag to just one certificate if you want to identify a specific characteristic of that certificate, or you can apply the same tag to multiple certificates if you want to filter for a common relationship among those certificates. Similarly, you can apply the same tag to multiple resources if you want to specify a relationship among those resources. For example, you can add the same tag to an ACM certificate and an Elastic Load Balancing load balancer to indicate that they are both used by the same website. For more information, see Tagging ACM certificates. To remove one or more tags, use the RemoveTagsFromCertificate action. To view all of the tags that have been applied to the certificate, use the ListTagsForCertificate action", - "hidden": undefined, - "icon": "📦", - "insertValue": undefined, - "name": "add-tags-to-certificate", - "priority": 50, - "type": undefined, - }, - ], -} -`; - exports[`parseCommand noArgsArgumentGiven 1`] = ` { "activeToken": undefined, diff --git a/src/tests/runtime/runtime.test.ts b/src/tests/runtime/runtime.test.ts index 55f91b7d..14543302 100644 --- a/src/tests/runtime/runtime.test.ts +++ b/src/tests/runtime/runtime.test.ts @@ -24,8 +24,8 @@ const testData = [ { name: "providedArgDescription", command: "act completion bash -a " }, { name: "completedOptionWithArg", command: "act completion bash -a 'actor' " }, { name: "command", command: "sudo git sta" }, - { name: "nestedNonCommands", command: "az az ", skip: true }, // TODO: fix skipped test - { name: "loadSpec", command: "aws acm add" }, + { name: "nestedNonCommands", command: "az az ", skip: true }, // no longer supported + { name: "loadSpec", command: "aws acm add", skip: true }, // no longer loaded { name: "noArgsArgumentGiven", command: "gcc lab ", maxSuggestions: 3 }, { name: "generatorUsingPartialInput", command: "dotnet add package Microsoft.Azure.WebJobs.Cor", maxSuggestions: 1 }, { name: "pathSuggestion", command: "source she" },