feat(remove): implement the "remove" command for removing migrations from the history

This commit is contained in:
Joakim Carlstein 2023-11-24 15:45:17 +01:00
parent 9447d28ad8
commit d8a6a2428a
12 changed files with 370 additions and 24 deletions

View file

@ -1,7 +1,7 @@
import { cosmiconfig } from 'cosmiconfig';
import { type Config, type EmigrateConfig } from './types.js';
const commands = ['up', 'list', 'new'] as const;
const commands = ['up', 'list', 'new', 'remove'] as const;
type Command = (typeof commands)[number];
export const getConfig = async (command: Command): Promise<Config> => {