File tree Expand file tree Collapse file tree 6 files changed +29
-1
lines changed Expand file tree Collapse file tree 6 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 1- TODO.md
1+ TODO.md
2+ __pycache__
3+ .venv
Original file line number Diff line number Diff line change 1+ typer
Original file line number Diff line number Diff line change 1+ from .commands .show import show
2+ from .commands .list import list
3+
4+ __all__ = ['show' , 'list' ]
Original file line number Diff line number Diff line change 1+ import typer
2+
3+ def list ():
4+ """List all available LeetCode problems."""
5+ typer .echo ("Fetching problem list..." )
Original file line number Diff line number Diff line change 1+ import typer
2+
3+ def show (problem_id : int ):
4+ """Show details of a specific problem."""
5+ typer .echo (f"Fetching details for problem { problem_id } ..." )
Original file line number Diff line number Diff line change 1+ import typer
2+ from commands .show import show
3+ from commands .list import list
4+
5+ app = typer .Typer ()
6+
7+ app .command ()(show )
8+ app .command ()(list )
9+
10+ if __name__ == "__main__" :
11+ app ()
You can’t perform that action at this time.
0 commit comments