Skip to content

Commit 3e33f72

Browse files
devillclaude
andcommitted
Fix help generation bug in documentation
- Update HelpContentExtractor to use correct CLI path 'npm run dev -- --help' - Fix broken AUTO-GENERATED HELP sections in CLAUDE.md and README.md - Documentation now correctly shows all available RefakTS commands 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 87f55fe commit 3e33f72

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

CLAUDE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@ npm run usage:report # View command usage statistics
5959
## Available RefakTS Commands
6060

6161
```
62-
Error: Could not generate help output
62+
- extract-variable [options] <target> Extract expression into a variable
63+
- inline-variable <target> Replace variable usage with its value
64+
- rename [options] <target> Rename a variable and all its references
65+
- select [options] <target> Find code elements and return their locations with content preview
66+
- sort-methods <target> Sort methods according to the step down rule
67+
- find-usages [options] <target> Find all usages of a symbol across files
68+
- move-file [options] <target> Move a file and update all import references
6369
```
6470
<!-- AUTO-GENERATED HELP END -->
6571

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ RefakTS provides surgical refactoring operations via command line, allowing AI a
2929
## Available Commands
3030

3131
```
32-
Error: Could not generate help output
32+
- extract-variable [options] <target> Extract expression into a variable
33+
- inline-variable <target> Replace variable usage with its value
34+
- rename [options] <target> Rename a variable and all its references
35+
- select [options] <target> Find code elements and return their locations with content preview
36+
- sort-methods <target> Sort methods according to the step down rule
37+
- find-usages [options] <target> Find all usages of a symbol across files
38+
- move-file [options] <target> Move a file and update all import references
3339
```
3440
<!-- AUTO-GENERATED HELP END -->
3541

src/dev/help-content-extractor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const execAsync = promisify(exec);
77
export class HelpContentExtractor {
88
async extractHelpContent(): Promise<string> {
99
try {
10-
const { stdout } = await execAsync('ts-node src/cli.ts --help', {
10+
const { stdout } = await execAsync('npm run dev -- --help', {
1111
cwd: path.join(__dirname, '..', '..')
1212
});
1313
return this.parseCommands(stdout);

0 commit comments

Comments
 (0)