| 90 | } |
| 91 | |
| 92 | func printUsage() { |
| 93 | fmt.Fprintf(os.Stderr, `code2context - Code project scanner for use with Fabric AI |
| 94 | |
| 95 | Usage: |
| 96 | code2context [options] <directory> <instructions> |
| 97 | <file_list> | code2context [options] <instructions> |
| 98 | |
| 99 | Examples: |
| 100 | code2context . "Add input validation to all user inputs" |
| 101 | code2context -depth 4 ./my-project "Implement error handling" |
| 102 | code2context -out project.json ./src "Fix security issues" |
| 103 | find . -name '*.go' | code2context "Refactor error handling" |
| 104 | git ls-files '*.py' | code2context "Add type hints" |
| 105 | |
| 106 | Options: |
| 107 | `) |
| 108 | flag.PrintDefaults() |
| 109 | } |