Files
TinyTorch/tito/commands/__init__.py
T
Vijay Janapa Reddi 15f5a84863 RESTORE: Complete CLI functionality in new architecture
- Ported all commands from bin/tito.py to new tito/ CLI architecture
- Added InfoCommand with system info and module status
- Added TestCommand with pytest integration
- Added DoctorCommand with environment diagnosis
- Added SyncCommand for nbdev export functionality
- Added ResetCommand for package cleanup
- Added JupyterCommand for notebook server
- Added NbdevCommand for nbdev development tools
- Added SubmitCommand and StatusCommand (placeholders)
- Fixed missing imports in tinytorch/core/tensor.py
- All commands now work with 'tito' command in shell
- Maintains professional architecture while restoring full functionality

Commands restored:
 info - System information and module status
 test - Run module tests with pytest
 doctor - Environment diagnosis
 sync - Export notebooks to package
 reset - Clean tinytorch package
 nbdev - nbdev development commands
 jupyter - Start Jupyter server
 submit - Module submission
 status - Module status
 notebooks - Build notebooks from Python files

The CLI now has both the professional architecture and all original functionality.
2025-07-10 22:39:23 -04:00

31 lines
719 B
Python

"""
CLI Commands package.
Each command is implemented as a separate module with proper separation of concerns.
"""
from .base import BaseCommand
from .notebooks import NotebooksCommand
from .info import InfoCommand
from .test import TestCommand
from .doctor import DoctorCommand
from .sync import SyncCommand
from .reset import ResetCommand
from .jupyter import JupyterCommand
from .nbdev import NbdevCommand
from .submit import SubmitCommand
from .status import StatusCommand
__all__ = [
'BaseCommand',
'NotebooksCommand',
'InfoCommand',
'TestCommand',
'DoctorCommand',
'SyncCommand',
'ResetCommand',
'JupyterCommand',
'NbdevCommand',
'SubmitCommand',
'StatusCommand',
]