Function: rmCommand()
rmCommand(
directory): (path) =>Promise<void>
Defined in: commands.ts:188
Delete a command at it's given path.
Parameters
| Parameter | Type |
|---|---|
directory | string |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
path | string |
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');