4 Commits

Author SHA1 Message Date
Rankin Zheng
367f0728db Exclude certain directories in file modification check
- Updated the is_file_modified function in askcode_index_query.py to exclude 'node_modules' and '__pycache__' directories along with directories starting with '.'.
2023-09-01 14:29:35 +08:00
bobo.yang
769666aaac Add function to get application data directory
- Added a new function `get_app_data_dir` in `install.py` to get the application data directory based on the operating system.
- This function checks if the directory exists, if not, it creates the directory.
- Updated the `venvdir` in the `main` function to use this new function, which will now point to the application data directory.
2023-08-21 11:52:00 +08:00
bobo.yang
215621ddbf Refactor sys.exit codes in askcode_index_query.py
- Removed unnecessary sys.exit(0) calls after index and query functions.
- Changed sys.exit code from 3 to 0 in the main function to indicate successful execution.
2023-08-21 11:52:00 +08:00
bobo.yang
5ebeec5f82 Added AskCode Indexing and Installation Scripts
- Created askcode_index_query.py to handle indexing and querying of AskCode.
- Implemented functions to check if a file is modified and if it's a source code file.
- Added functionality to index a given repository path and query a given question.
- Created install_askcode.py to handle the installation of AskCode.
- Implemented functions to install pip, virtualenv, create a virtual environment, and install devchat.
2023-08-21 11:52:00 +08:00