catalog-read

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Purpose

用途

Read the catalog index: either the top-level
topics.md
or a specific module's detailed index.
读取目录索引:可以是顶层的
topics.md
或特定模块的详细索引。

Input

输入

  • target
    :
    topics
    (default) or a module name
  • target
    topics
    (默认值)或模块名称

Required Flow

必要流程

bash
memory-hub catalog-read [topics|<module>]
bash
memory-hub catalog-read [topics|<module>]

Output

输出

JSON envelope with
data.content
containing the file content.
包含
data.content
的JSON包,其中
data.content
存储文件内容。

Error Handling

错误处理

  • CATALOG_NOT_FOUND
    → requested catalog file does not exist
  • CATALOG_NOT_FOUND
    → 请求的目录文件不存在