From 5c3f3ceb2005d0dbd7e59648b2fee52f0ed793c0 Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Sat, 4 Mar 2023 10:36:19 +0100 Subject: [PATCH] Rename script --- ..._decrets_and_lois.ts => associate_decrets_and_lois.ts} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename src/scripts/{link_decrets_and_lois.ts => associate_decrets_and_lois.ts} (84%) diff --git a/src/scripts/link_decrets_and_lois.ts b/src/scripts/associate_decrets_and_lois.ts similarity index 84% rename from src/scripts/link_decrets_and_lois.ts rename to src/scripts/associate_decrets_and_lois.ts index 802f937..c6c927b 100644 --- a/src/scripts/link_decrets_and_lois.ts +++ b/src/scripts/associate_decrets_and_lois.ts @@ -4,7 +4,7 @@ import sade from "sade" import type { JorfTexteVersion } from "$lib" import { db } from "$lib/server/database" -async function linkDecretsToLois(): Promise { +async function associateDecretsToLois(): Promise { for (const texteVersion of ( await db<{ data: JorfTexteVersion }[]>` SELECT data @@ -30,10 +30,10 @@ async function linkDecretsToLois(): Promise { } } -sade("link_decrets_and_lois", true) - .describe("Link decrets to lois in database") +sade("associate_decrets_and_lois", true) + .describe("Associate décrets with lois in database") .action(async () => { - await linkDecretsToLois() + await associateDecretsToLois() process.exit(0) }) .parse(process.argv)