import { Command } from "@cliffy/command"; import { migrate } from "../migrate.ts"; import { Hsh } from "../hsh.ts"; function register(cmd: Command, hsh: Hsh) { cmd .command("migrate", "migrate to the current standard") .arguments("[notebook:string]") .action(async (_opts, notebook) => await migrate(hsh.getNotebook(notebook)) ); } export default { register };