MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda-cdk / cargoLambdaVersion

Function cargoLambdaVersion

src/bundling.ts:242–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240}
241
242export function cargoLambdaVersion(): boolean | undefined {
243 try {
244 const cargo = spawnSync('cargo', ['lambda', '--version']);
245 return cargo.status !== 0 || cargo.error ? undefined : true;
246 } catch (err) {
247 return undefined;
248 }
249}

Callers 4

function.test.tsFile · 0.85
extension.test.tsFile · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected