<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def command(state, args):
 """List file priority rules."""

    rules = query.files.get_priority_rules(state.db)
    print(tabulate(rules, headers=['ID', 'Regexp', 'Priority']))