From 121452e1c98b2185f335930fa91f665bb886905d Mon Sep 17 00:00:00 2001 From: Lightling Date: Fri, 9 Feb 2024 20:43:24 -0500 Subject: [PATCH] organize --- args.js => lib/args.js | 0 getUser.js => lib/dl.js | 0 io.js => lib/io.js | 0 log.js => lib/log.js | 0 buildDb.js => run-buildDb.js | 6 +++--- initDb.js => run-initDb.js | 6 +++--- 6 files changed, 6 insertions(+), 6 deletions(-) rename args.js => lib/args.js (100%) rename getUser.js => lib/dl.js (100%) rename io.js => lib/io.js (100%) rename log.js => lib/log.js (100%) rename buildDb.js => run-buildDb.js (93%) rename initDb.js => run-initDb.js (81%) diff --git a/args.js b/lib/args.js similarity index 100% rename from args.js rename to lib/args.js diff --git a/getUser.js b/lib/dl.js similarity index 100% rename from getUser.js rename to lib/dl.js diff --git a/io.js b/lib/io.js similarity index 100% rename from io.js rename to lib/io.js diff --git a/log.js b/lib/log.js similarity index 100% rename from log.js rename to lib/log.js diff --git a/buildDb.js b/run-buildDb.js similarity index 93% rename from buildDb.js rename to run-buildDb.js index 46fcbc1..d631924 100644 --- a/buildDb.js +++ b/run-buildDb.js @@ -1,8 +1,8 @@ import { readFile } from 'fs/promises'; -import { getArg } from './args.js'; -import { getUser } from './getUser.js'; -import { error, log } from './log.js'; +import { getArg } from './lib/args.js'; +import { getUser } from './lib/dl.js'; +import { error, log } from './lib/log.js'; const ctx = 'buildDb.js'; diff --git a/initDb.js b/run-initDb.js similarity index 81% rename from initDb.js rename to run-initDb.js index 7e16b86..29adb6c 100644 --- a/initDb.js +++ b/run-initDb.js @@ -1,8 +1,8 @@ import { writeFile } from 'fs/promises'; -import { getArg } from './args.js'; -import { getChildren } from './io.js'; -import { error, log } from './log.js'; +import { getArg } from './lib/args.js'; +import { getChildren } from './lib/io.js'; +import { error, log } from './lib/log.js'; const ctx = 'initDb.js';