MCPcopy Create free account
hub / github.com/Azure/powershell / isValidVersion

Method isValidVersion

src/Utilities/Utils.ts:124–126  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

122 }
123
124 static isValidVersion(version: string): boolean {
125 return !!version.match(Constants.versionPattern);
126 }
127
128 static async isHostedAgent(moduleContainerPath: string): Promise<boolean> {
129 const script = `Test-Path (Join-Path "${moduleContainerPath}" "az_*")`;

Callers 3

validateInputsFunction · 0.45
getLatestModuleMethod · 0.45
checkModuleVersionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected