MCPcopy Create free account
hub / github.com/dfinity/orbit / cargoProjectVersion

Function cargoProjectVersion

cli/src/utils.ts:53–59  ·  view source on GitHub ↗
(projectName: string)

Source from the content-addressed store, hash-verified

51};
52
53export const cargoProjectVersion = (projectName: string): string => {
54 return execSync(
55 `cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "${projectName}") | .version'`,
56 )
57 .toString()
58 .trim();
59};
60
61export const readFileIntoUint8Array = async (filePath: string): Promise<Uint8Array> => {
62 const buffer = await readFile(filePath);

Callers 1

getAppRegistryEntryFunction · 0.90

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected