Skip to content

fix(init): correct RTK.md summary output#2743

Open
ekkoitac wants to merge 1 commit into
rtk-ai:developfrom
ekkoitac:fix/issue-2734-rtk-init-doc-output
Open

fix(init): correct RTK.md summary output#2743
ekkoitac wants to merge 1 commit into
rtk-ai:developfrom
ekkoitac:fix/issue-2734-rtk-init-doc-output

Conversation

@ekkoitac

@ekkoitac ekkoitac commented Jun 30, 2026

Copy link
Copy Markdown

Summary

  • replace the circular RTK.md pointer to CLAUDE.md with a direct rtk --help command reference
  • report the generated RTK.md line count from the embedded template instead of hard-coding 10 lines
  • add regression coverage for the slim RTK.md reference and line-count helper

Fixes #2734

Validation

  • cargo fmt --all -- --check
  • cargo clippy --all-targets
  • cargo test --all
  • manual smoke: CLAUDE_CONFIG_DIR=$(mktemp -d) cargo run --quiet -- init -g --auto-patch prints RTK.md ... (29 lines); generated RTK.md is 29 lines and ends with Run \rtk --help` for the full command reference.`

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rtk init: generated RTK.md has a circular reference and the run miscounts its line total

2 participants