Print usage examples for different scenarios
()
| 1608 | |
| 1609 | |
| 1610 | def print_usage_example(): |
| 1611 | """Print usage examples for different scenarios""" |
| 1612 | print(""" |
| 1613 | 📖 Code Indexer Usage Examples: |
| 1614 | |
| 1615 | 1. Basic usage with config file: |
| 1616 | - Update paths in indexer_config.yaml |
| 1617 | - Run: python code_indexer.py |
| 1618 | |
| 1619 | 2. Enable debugging: |
| 1620 | - Set debug.verbose_output: true in config |
| 1621 | - Set debug.save_raw_responses: true to save LLM responses |
| 1622 | |
| 1623 | 3. Enable concurrent processing: |
| 1624 | - Set performance.enable_concurrent_analysis: true |
| 1625 | - Adjust performance.max_concurrent_files as needed |
| 1626 | |
| 1627 | 4. Enable caching: |
| 1628 | - Set performance.enable_content_caching: true |
| 1629 | - Adjust performance.max_cache_size as needed |
| 1630 | |
| 1631 | 5. Mock mode for testing: |
| 1632 | - Set debug.mock_llm_responses: true |
| 1633 | - No API calls will be made |
| 1634 | |
| 1635 | 6. Custom output: |
| 1636 | - Modify output.index_filename_pattern |
| 1637 | - Set output.generate_statistics: true for detailed reports |
| 1638 | |
| 1639 | 📋 Configuration file location: tools/indexer_config.yaml |
| 1640 | """) |
| 1641 | |
| 1642 | |
| 1643 | if __name__ == "__main__": |