feat(main): add main entry point and restructure widget generation logic

This commit is contained in:
shay
2026-02-18 12:30:30 -05:00
parent 88d0003e72
commit 27c297c0fb
3 changed files with 46 additions and 1002 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env python3
"""
Entry point for running the GitHub profile widget generator.
Run this from the project root directory.
"""
import sys
from src.generate import main
if __name__ == "__main__":
main()
-10
View File
@@ -54,16 +54,6 @@ GITHUB_TOKEN=your_token python run.py <username>
python run.py <username> light python run.py <username> light
``` ```
## PyCharm Setup
To fix import resolution in PyCharm:
1. Right-click on the `src` folder
2. Select **Mark Directory as** → **Sources Root**
3. PyCharm will now resolve all imports correctly
Alternatively, the project is set up with proper relative imports, so imports should work automatically once `src` is marked as a source root.
## Extending ## Extending
### Adding a New Widget ### Adding a New Widget
+35 -992
View File
File diff suppressed because it is too large Load Diff