Skip to main content

Function: rmCommand()

rmCommand(directory): (path) => Promise<void>

Defined in: commands.ts:188

Delete a command at it's given path.

Parameters

ParameterType
directorystring

Returns

Function

Parameters

ParameterType
pathstring

Returns

Promise<void>

Example

import utils from '@eventcatalog/utils';

const { rmCommand } = utils('/path/to/eventcatalog');

// removes a command at the given path (commands dir is appended to the given path)
// Removes the command at commands/UpdateInventory
await rmCommand('/UpdateInventory');