Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance fosslight_wrapper.py with double-click functionality and manual mode #125

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

soonhong99
Copy link
Contributor

@soonhong99 soonhong99 commented Sep 28, 2024

Description

This PR updates the existing fosslight_wrapper.py file with new functionalities:

  1. Double-click execution: When double-clicked, the wrapper analyzes the current directory and outputs results in the same location.
  2. Manual mode: Using fosslight_wrapper.exe --manual allows users to specify custom image, options, analysis path, and output path.

These changes aim to improve user experience by providing more flexible usage options.

Changes made:

  • Added double-click functionality for easy execution
  • Implemented manual mode for customized analysis
  • Updated logging and error handling
  • Improved path handling for Windows environments

This PR continues and enhances the work from the previous PR on fosslight_wrapper.py.

Current issues and considerations:

  1. WFP file generation: The scanner_output.wfp file is still generated in the analysis directory when run on Windows, both in double-click and manual modes. It's worth noting that this issue also occurs when using 'pip install fosslight_scanner', indicating it's not specific to the Docker wrapper.

  2. Self-analysis of executable: When analyzing the current directory via double-click, the fosslight_wrapper.exe itself is included in the analysis. We need to consider how to exclude the executable from the analysis to prevent unnecessary scanning.

Next steps:

  • Investigate ways to prevent WFP file generation or implement automatic cleanup
  • Explore methods to exclude the wrapper executable from analysis when using double-click functionality

We welcome any feedback or suggestions on addressing these issues and further improving the wrapper's functionality.

Type of change

Please insert 'x' one of the type of change.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation update
  • Refactoring, Maintenance
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

* feat: 더블클릭 시 현재 경로 분석 및 결과 도출 기능 추가

* feat: --manual 옵션으로 사용자 지정 설정 가능하도록 구현

* refactor: 실행 모드에 따른 로직 분리

Signed-off-by: soonhong99 <[email protected]>
@soonhong99
Copy link
Contributor Author

#123 해당 PR 내용에 이어 만들어진 PR입니다.

Signed-off-by: soonhong99 <[email protected]>
@soimkim soimkim added the chore [PR/Issue] Refactoring, maintenance the code label Sep 28, 2024
Copy link

@ParkSangsin ParkSangsin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

Copy link

@persi0815 persi0815 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다! 수고하셨습니다~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore [PR/Issue] Refactoring, maintenance the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants