浏览代码

fix(cli): use collection add command in empty collection hints

Vincent Koc 3 月之前
父节点
当前提交
e9b30bb821
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/qmd.ts

+ 2 - 2
src/qmd.ts

@@ -1154,7 +1154,7 @@ function listFiles(pathArg?: string): void {
     const yamlCollections = yamlListCollections();
 
     if (yamlCollections.length === 0) {
-      console.log("No collections found. Run 'qmd add .' to index files.");
+      console.log("No collections found. Run 'qmd collection add .' to index files.");
       closeDb();
       return;
     }
@@ -1293,7 +1293,7 @@ function collectionList(): void {
   const collections = listCollections(db);
 
   if (collections.length === 0) {
-    console.log("No collections found. Run 'qmd add .' to create one.");
+    console.log("No collections found. Run 'qmd collection add .' to create one.");
     closeDb();
     return;
   }