gitcloak/test.py
Kumi 621022dfb8
feat: add homepage and improve markdown processing
- Added an index route and template for the homepage
- Moved to a custom markdown processor to handle relative URLs
- Enhanced CSS for better layout structure and styling
- Improved the directory listing logic to support path filtering
- Updated endpoint to serve raw files from main branch
- Added comprehensive documentation strings to Git class methods

These changes improve user navigation and content display across the application.
2024-06-19 08:31:07 +02:00

11 lines
No EOL
372 B
Python

from gitcloak.classes.git import Git
repo = "https://github.com/privatecoffee/transfer.coffee"
git = Git(repo)
print(git.get_directory_structure("public/"))
file_path = "public/dist/js/webtorrent.LICENSE"
content = git.get_file_content(file_path)
print(f"Type of content: {type(content)}")
content = content.decode('utf-8')
print(f"\nContent of {file_path}:\n{content}")