A note-taking app inspired by nb
at main 14 lines 388 B view raw
1import { Command } from "@cliffy/command"; 2import { migrate } from "../migrate.ts"; 3import { Hsh } from "../hsh.ts"; 4 5function register(cmd: Command, hsh: Hsh) { 6 cmd 7 .command("migrate", "migrate to the current standard") 8 .arguments("[notebook:string]") 9 .action(async (_opts, notebook) => 10 await migrate(hsh.getNotebook(notebook)) 11 ); 12} 13 14export default { register };