Function: versionFlow()
versionFlow(
directory): (id) =>Promise<void>
Defined in: flows.ts:291
Version a flow by its id.
Takes the latest flow and moves it to a versioned directory. All files with this flow are also versioned.
Parameters
| Parameter | Type |
|---|---|
directory | string |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<void>
Example
import utils from '@eventcatalog/utils';
const { versionFlow } = utils('/path/to/eventcatalog');
// moves the latest PaymentFlow flow to a versioned directory
await versionFlow('PaymentFlow');