<s> import click <EOL> from time_tracker . core . usecases import get_entries_list , get_total_stats <EOL> from time_tracker . config import Config <EOL> from . pprint import pprint_entry , pprint_header , pprint_stats <EOL> from . options import DependentOption <EOL> @ click . command ( ) <EOL> @ click . option ( '<STR_LIT>' , default = None , <EOL> help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , <EOL> prompt = '<STR_LIT>' , default = None , <EOL> help = '<STR_LIT>' , <EOL> cls = DependentOption , prompt_depends_on = ( '<STR_LIT>' , False ) ) <EOL> @ click . option ( '<STR_LIT>' , <EOL> prompt = '<STR_LIT>' , default = None , <EOL> hide_input = True , help = '<STR_LIT>' , <EOL> cls = DependentOption , prompt_depends_on = ( '<STR_LIT>' , True ) ) <EOL> @ click . option ( '<STR_LIT>' , prompt = '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , default = None , <EOL> help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , default = None , type = int , <EOL> help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , default = None , <EOL> help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , default = False , <EOL> help = '<STR_LIT>' ) <EOL> def print_time_tracking_info ( <EOL> token , login , password , repo , committer , issue , milestone , total ) : <EOL> """<STR_LIT>""" <EOL> pprint_header ( repo_name = repo , issue = issue , milestone = milestone ) <EOL> config = Config ( ) <EOL> data_source = config . get_backend ( ) ( token = token , login = login , <EOL> password = password ) <EOL> click . echo ( "<STR_LIT>" ) <EOL> if total : <EOL> result = get_total_stats ( <EOL> data_source , repo , committer , issue , milestone ) <EOL> pprint_stats ( result ) <EOL> else : <EOL> result = get_entries_list ( <EOL> data_source , repo , committer , issue , milestone ) <EOL> for entry in result [ '<STR_LIT>' ] : <EOL> pprint_entry ( entry , committer ) </s>
