UNPKG

@azure-tools/typespec-powershell

Version:

An experimental TypeSpec emitter for PowerShell codegen

23 lines 921 B
import { listAllServiceNamespaces } from "@azure-tools/typespec-client-generator-core"; import { getNamespaceFullName } from "@typespec/compiler"; export function getClients(psContext) { const services = listAllServiceNamespaces(psContext); return services.map((service) => { const clientName = service.name + "Client"; return { kind: "SdkClient", name: clientName, service: service, type: service, arm: Boolean(psContext.arm), crossLanguageDefinitionId: `${getNamespaceFullName(service)}.${clientName}` }; }); } function isArm(service) { return service.decorators.some((decorator) => decorator.decorator.name === "$armProviderNamespace"); } // export function isRLCMultiEndpoint(dpgContext: SdkContext): boolean { // return getRLCClients(dpgContext).length > 1; // } //# sourceMappingURL=clientUtils.js.map