all repos — momix @ main

A CLI tool to manage recipes for Thermomix

commands/store.ts (view raw)

1import type { DatabaseSync } from "node:sqlite";
2import { storeRecipe } from "../services.ts";
3
4export default async (db: DatabaseSync, recipeId: string) => {
5  const result = await storeRecipe(db, recipeId);
6  if (!result) Deno.exit(0);
7};