11import typer
2- from src .commands import show
3- from src .commands .edit import edit
4- from src .server .api import get_daily_question
2+ from .edit import edit
3+ from ..server .api import get_daily_question
54
65def daily (
7- lang : str = typer .Argument ("python" , help = "Programming language to use." ),
8- editor : str = typer .Option ("code" , '-e' , help = "Code editor to use." ),
6+ lang : str = typer .Argument ("python" , help = "Programming language to use." ),
7+ editor : str = typer .Option ("code" , '-e' , help = "Code editor to use." ),
98):
10- """Check the daily problem."""
11- result = get_daily_question ()
12- question = result ['data' ]['activeDailyCodingChallengeQuestion' ]
9+ """Check the daily problem."""
10+ from .show import show
1311
14- show (problem = question ['question' ]['titleSlug' ], layout = True )
12+ result = get_daily_question ()
13+ question = result ['data' ]['activeDailyCodingChallengeQuestion' ]
1514
16- if editor :
17- edit (problem = question ['question' ]['titleSlug' ], lang = lang , editor = editor )
15+ show (problem = question ['question' ]['titleSlug' ], layout = True )
16+
17+ if editor :
18+ edit (problem = question ['question' ]['titleSlug' ], lang = lang , editor = editor )
0 commit comments