oneaiguru / GenAICodeUpdater

0 stars 0 forks source link

separate utils #10

Open oneaiguru opened 1 month ago

oneaiguru commented 1 month ago
# Move project_manager.py to its own repository
mv /Users/m/git/tools/MyCodeTree2LLM/project_manager.py ~/git/tools/project_manager/

# Move workflow_automation.py to its own repository
mv /Users/m/git/tools/MyCodeTree2LLM/workflow_automation.py ~/git/tools/workflow_automation/

# Move folder_structure_generator.py to its own repository
mv /Users/m/git/tools/MyCodeTree2LLM/folder_structure_generator.py ~/git/tools/folder_structure_generator/

# Move select_files.py to its own repository
mv /Users/m/git/tools/MyCodeTree2LLM/select_files.py ~/git/tools/select_files/

# Move tests directory to its own repository
mv /Users/m/git/tools/MyCodeTree2LLM/tests ~/git/tools/tests/

# Move src directory to its own repository
mv /Users/m/git/tools/MyCodeTree2LLM/src ~/git/tools/src/

# Move config.json to its own repository
mv /Users/m/git/tools/MyCodeTree2LLM/config.json ~/git/tools/config_manager/

# Initialize git repositories and make initial commits
cd ~/git/tools/project_manager
git init
git add .
git commit -m "Initial commit for project_manager"

cd ~/git/tools/workflow_automation
git init
git add .
git commit -m "Initial commit for workflow_automation"

cd ~/git/tools/folder_structure_generator
git init
git add .
git commit -m "Initial commit for folder_structure_generator"

cd ~/git/tools/select_files
git init
git add .
git commit -m "Initial commit for select_files"

cd ~/git/tools/tests
git init
git add .
git commit -m "Initial commit for tests"

cd ~/git/tools/src
git init
git add .
git commit -m "Initial commit for src"

cd ~/git/tools/config_manager
git init
git add .
git commit -m "Initial commit for config_manager"
# Prompts for Updating Each Repository

## project_manager Repository

Provide an updated version of project_manager.py that includes improved error handling and logging. Ensure that all existing functionalities are preserved and add unit tests to cover edge cases. Refactor the code to follow PEP 8 guidelines and optimize any inefficient sections.


## workflow_automation Repository

Enhance workflow_automation.py by adding asynchronous subprocess handling to prevent blocking during execution. Update the logging mechanism to include more detailed information about each step of the workflow. Add comprehensive unit tests to ensure reliability and handle potential exceptions gracefully.


## folder_structure_generator Repository

Update folder_structure_generator.py to support additional ignore patterns and improve the performance of directory traversal. Implement better error handling for file operations and add detailed logging for each action performed. Ensure the script adheres to PEP 8 standards and include unit tests for all new functionalities.


## select_files Repository

Refactor select_files.py to enhance its modularity and maintainability. Introduce new features for more flexible file selection criteria and improve the user interface for better usability. Add comprehensive unit tests to cover all new and existing functionalities, ensuring robustness and reliability.


## tests Repository

Merge all unique tests from test_select_files.py into the tests repository. Ensure that tests are organized logically and cover all critical functionalities of each tool. Update test configurations to work seamlessly with the new repository structure and add any missing test cases to improve coverage.


## src Repository

Refactor the src directory to follow a more organized project structure. Ensure that all modules are properly documented and adhere to PEP 8 standards. Implement additional utility functions as needed and add unit tests to cover new and existing modules. Improve the overall code quality and maintainability.


## config_manager Repository

Enhance config.json management by adding validation to ensure configuration integrity. Update the configuration handling scripts to support dynamic updates and rollback mechanisms in case of failures. Add comprehensive tests to verify the correctness of configuration operations and improve logging for better traceability.