75766dbfdc
- Created CommandPocPage.tsx with basic layout structure - Added POC-specific TypeScript interfaces and types - Implemented basic UI components: PocHeader, PocMessageList, PocMessageBubble, PocCommandInput, PocStatusBar - Added /command-poc route to Router.tsx - Set up component folder structure following PRD specifications 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
1.0 KiB
Python
39 lines
1.0 KiB
Python
#!/usr/bin/env python3
|
|
"""
|
|
Test Python script for the web CLI POC
|
|
Demonstrates various interactive features
|
|
"""
|
|
|
|
import time
|
|
import sys
|
|
|
|
def main():
|
|
print("🐍 Python CLI Web Interface Test Script")
|
|
print("=" * 40)
|
|
|
|
# Test basic output
|
|
print("Hello from Python!")
|
|
print("This is a test script to demonstrate the web interface.")
|
|
|
|
# Test user input
|
|
name = input("What's your name? ")
|
|
print(f"Nice to meet you, {name}!")
|
|
|
|
# Test multiple inputs
|
|
while True:
|
|
color = input("What's your favorite color? (or 'quit' to exit): ")
|
|
if color.lower() == 'quit':
|
|
break
|
|
print(f"🎨 {color} is a great choice!")
|
|
|
|
# Test countdown with streaming output
|
|
print("\nStarting countdown...")
|
|
for i in range(5, 0, -1):
|
|
print(f"⏰ {i}...")
|
|
sys.stdout.flush() # Force output to be sent immediately
|
|
time.sleep(1)
|
|
|
|
print("🎉 Done! Thanks for testing the Python CLI Web Interface!")
|
|
|
|
if __name__ == "__main__":
|
|
main() |