Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions devel/216_50.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# [216_50] 修改gf doc和source的提示文档
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 缺少"任务相关的代码文件"章节

CLAUDE.md 中的 devel/x_y.md 模板要求在"如何测试"之前包含一个"任务相关的代码文件"小节,列出修改的实现文件和测试文件。此处缺少该章节,建议补充:

Suggested change
# [216_50] 修改gf doc和source的提示文档
# [216_50] 修改gf doc和source的提示文档
## 任务相关的代码文件
- `src/goldfish.hpp`

Context Used: CLAUDE.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!


## 如何测试
`bin/gf`
输出
相关的输出修改为
```
source ORG/LIB Print the exact source of ORG/LIB from current *load-path*
Reads the real library file, not tests/ or generated docs
Example: gf source liii/path
doc ORG/LIB Show the library overview for ORG/LIB from tests/
Usually reads tests/ORG/LIB-test.scm
Example: gf doc liii/path
doc ORG/LIB FUNC Show the function doc/test file for FUNC under a specific library
Best when you already know the library, or the name is ambiguous
Example: gf doc liii/path "path-read-text"
doc FUNC Search visible libraries for exported FUNC, then show its doc/test file
If multiple libraries export it, candidates are listed
Example: gf doc "string-split"
doc --build-json Rebuild tests/function-library-index.json for global gf doc FUNC lookup
Needed by function-name search and fuzzy suggestions
Run this after changing exports, or before packaging
```



## 2026/04/03 修改gf doc和source的提示文档
Comment on lines +28 to +31
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 多余的空行

文件末尾有两个多余的空白行(第 25–26 行),建议删除以保持文档简洁。

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

19 changes: 15 additions & 4 deletions src/goldfish.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3382,10 +3382,21 @@ display_help () {
cout << " fix [options] PATH Format PATH (PATH can be a .scm file or directory)" << endl;
cout << " Options:" << endl;
cout << " --dry-run Print formatted result to stdout" << endl;
cout << " source ORG/LIB Display exact library source from *load-path*" << endl;
cout << " doc ORG/LIB Display exact library documentation from tests/" << endl;
cout << " doc FUNC Display exact function documentation from tests/" << endl;
cout << " doc --build-json Rebuild function-library-index.json under tests/" << endl;
cout << " source ORG/LIB Print the exact source of ORG/LIB from current *load-path*" << endl;
cout << " Reads the real library file, not tests/ or generated docs" << endl;
cout << " Example: gf source liii/path" << endl;
cout << " doc ORG/LIB Show the library overview for ORG/LIB from tests/" << endl;
cout << " Usually reads tests/ORG/LIB-test.scm" << endl;
cout << " Example: gf doc liii/path" << endl;
cout << " doc ORG/LIB FUNC Show the function doc/test file for FUNC under a specific library" << endl;
cout << " Best when you already know the library, or the name is ambiguous" << endl;
cout << " Example: gf doc liii/path \"path-read-text\"" << endl;
cout << " doc FUNC Search visible libraries for exported FUNC, then show its doc/test file" << endl;
cout << " If multiple libraries export it, candidates are listed" << endl;
cout << " Example: gf doc \"string-split\"" << endl;
cout << " doc --build-json Rebuild tests/function-library-index.json for global gf doc FUNC lookup" << endl;
cout << " Needed by function-name search and fuzzy suggestions" << endl;
cout << " Run this after changing exports, or before packaging" << endl;
cout << " test [PATTERN] Run tests (all *-test.scm files under tests/)" << endl;
cout << " PATTERN can be:" << endl;
cout << " (none) Run all tests" << endl;
Expand Down
Loading