Fluere is a powerful and versatile tool designed for network monitoring and analysis. It is capable of capturing network packets in pcap format and converting them into NetFlow data, providing a comprehensive view of network traffic. It also Provides Terminal User Interface.
Apache License 2.0
37
stars
3
forks
source link
Fix git pull issue in download_plugin_from_github function #78
This PR addresses the issue where the git pull command in the download_plugin_from_github function was not working as expected. The function is designed to download a plugin from a GitHub repository and update it if it already exists. However, the git pull command was not updating the plugin as expected.
Summary of Changes
The git pull command has been replaced with git pull origin master to ensure that the command pulls from the master branch of the repository.
The git pull command is now executed in the directory of the cloned repository. Previously, the git pull command was being executed in the home cache directory, which may not have been the correct directory. The cd_cmd variable has been changed to let cd_cmd = format!("cd {}/{}", path.display(), repo_name.split('/').last().unwrap()); to reflect this change.
The function has been tested to ensure that it correctly pulls updates from the GitHub repository.
Fixes #69.
🎉 Latest improvements to Sweep:
Sweep now uses the rope library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, try sweep: Refactor <your_file>.py to be more modular!
To trigger a single review, invoke the @coderabbitai review command.
Tips
### Chat with CodeRabbit Bot (`@coderabbitai`)
- If you reply to a *review comment* from CodeRabbit, the bot will automatically respond.
- To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment
- Note: Review comments are made on code diffs or files, not on the PR overview.
- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
### CodeRabbit Commands (invoked as PR comments)
- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai help` to get help.
- `@coderabbitai resolve` to resolve all the CodeRabbit review comments.
Note: For conversation with the bot, please use the review comments on code diffs or files.
### CodeRabbit Configration File (`.coderabbit.yaml`)
- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json).
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json`
PR Feedback (click)
Description
This PR addresses the issue where the
git pull
command in thedownload_plugin_from_github
function was not working as expected. The function is designed to download a plugin from a GitHub repository and update it if it already exists. However, thegit pull
command was not updating the plugin as expected.Summary of Changes
git pull
command has been replaced withgit pull origin master
to ensure that the command pulls from the master branch of the repository.git pull
command is now executed in the directory of the cloned repository. Previously, thegit pull
command was being executed in the home cache directory, which may not have been the correct directory. Thecd_cmd
variable has been changed tolet cd_cmd = format!("cd {}/{}", path.display(), repo_name.split('/').last().unwrap());
to reflect this change.Fixes #69.
🎉 Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py to be more modular
!💡 To get Sweep to edit this pull request, you can: