« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/find.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/find.js')
-rw-r--r--src/find.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/find.js b/src/find.js
index b8230800..5ad8dae7 100644
--- a/src/find.js
+++ b/src/find.js
@@ -1,6 +1,6 @@
 import {inspect} from 'node:util';
 
-import {color, logWarn} from '#cli';
+import {colors, logWarn} from '#cli';
 
 function warnOrThrow(mode, message) {
   if (mode === 'error') {
@@ -66,7 +66,7 @@ function findHelper(keys, findFns = {}) {
     const found = key ? byDirectory(ref, data, mode) : byName(ref, data, mode);
 
     if (!found) {
-      warnOrThrow(mode, `Didn't match anything for ${color.bright(fullRef)}`);
+      warnOrThrow(mode, `Didn't match anything for ${colors.bright(fullRef)}`);
     }
 
     cacheForThisData[fullRef] = found;
@@ -102,7 +102,7 @@ function matchName(ref, data, mode) {
   if (ref !== thing.name) {
     warnOrThrow(
       mode,
-      `Bad capitalization: ${color.red(ref)} -> ${color.green(thing.name)}`
+      `Bad capitalization: ${colors.red(ref)} -> ${colors.green(thing.name)}`
     );
   }