Initial upload: ScaffoldForge CLI tool with full codebase, tests, and CI/CD
This commit is contained in:
34
scaffoldforge/templates/python/default/main.py.j2
Normal file
34
scaffoldforge/templates/python/default/main.py.j2
Normal file
@@ -0,0 +1,34 @@
|
||||
"""Main entry point for {{ project_name }}.
|
||||
|
||||
Generated from GitHub Issue #{{ issue_number }}: {{ issue_title }}
|
||||
URL: {{ issue_url }}
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
"""Main entry point."""
|
||||
parser = argparse.ArgumentParser(
|
||||
description="{{ project_name }} - {{ issue_title }}"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--version",
|
||||
action="version",
|
||||
version="0.1.0",
|
||||
)
|
||||
args = parser.parse_args()
|
||||
|
||||
# TODO: Implement main functionality
|
||||
# {% for item in todo_items %}
|
||||
# TODO #{{ loop.index }}: {{ item }}
|
||||
# {% endfor %}
|
||||
|
||||
print("{{ project_name }} is running")
|
||||
print(f"Repository: {{ repository }}")
|
||||
print(f"Issue: {{ issue_number }}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user