From 7d7b16e9e2b2aeafcc6d9ccc29c9afc39a76bdbe Mon Sep 17 00:00:00 2001 From: Janik von Rotz Date: Mon, 9 Mar 2026 18:08:00 +0100 Subject: [PATCH] feat(help-table): refactor update-template command to parse library.md line by line and handle ### headers with grep matching --- prompts/10_refactor-update-template-command.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/prompts/10_refactor-update-template-command.md b/prompts/10_refactor-update-template-command.md index f18c411..3268542 100644 --- a/prompts/10_refactor-update-template-command.md +++ b/prompts/10_refactor-update-template-command.md @@ -49,7 +49,12 @@ rows+=("clone-taskfile||Clone the taskfile.build repo.") And then it also updates the list of commands in the install script. -I want you to refactor the command. It should parse the library.md line by line. No greping. It the line starts with `##` it creats a separator row. If the line starts with code blocks then it reads the content until the next code block. +I want you to refactor the command. It should parse the library.md line by line. No greping. It the line starts with `##` it creats a separator row. If the line starts with `###` it greps the title and match should return the row content. + +``` +[main][~/taskfile.build]$ rg "clone-taskfile\|" library.md +53:rows+=("clone-taskfile||Clone the taskfile.build repo.") +``` ## Worklog