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

Function assertCommandExists

cli/src/utils.ts:93–97  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

91};
92
93export const assertCommandExists = (command: string): void => {
94 if (!commandExists(command)) {
95 throw new Error(`Command '${command}' does not exist.`);
96 }
97};
98
99export const getReplicaUrl = async (network: string): Promise<string> => {
100 const dfxFile = JSON.parse(await readFile(DFX_PATH, 'utf-8'));

Callers 1

publish.tsFile · 0.90

Calls 1

commandExistsFunction · 0.85

Tested by

no test coverage detected