- 70 skills with code and documentation - Add .gitignore (ignore __pycache__, output/, temp/, venv/) - Clean up test intermediates and caches
34 lines
944 B
Python
34 lines
944 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
HTML Splitter Skill Entry Point
|
|
|
|
This is the main entry point for the HTML Splitter skill.
|
|
"""
|
|
import sys
|
|
from pathlib import Path
|
|
import subprocess
|
|
import os
|
|
|
|
def main():
|
|
"""Main entry point for HTML splitter skill."""
|
|
if len(sys.argv) < 2:
|
|
print("Usage: html-splitter <input-html-file> [-o output-dir]")
|
|
print("Example: html-splitter my_poster.html -o ./output")
|
|
return 1
|
|
|
|
# Get the script directory (where this file is located)
|
|
script_dir = Path(__file__).parent
|
|
splitter_script = script_dir / "html_splitter.py"
|
|
|
|
if not splitter_script.exists():
|
|
print(f"Error: Splitter script not found at {splitter_script}")
|
|
return 1
|
|
|
|
# Call the actual splitter script
|
|
cmd = [sys.executable, str(splitter_script)] + sys.argv[1:]
|
|
result = subprocess.run(cmd)
|
|
|
|
return result.returncode
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(main()) |