def main(wf):
query = None
args = wf.args
if len(wf.args):
query = wf.args[0]
items = all_items()
if query:
items = wf.filter(query, items, lambda item: item['arg'])
if not items:
wf.add_item('Unknown pomo command', icon=ICON_WARNING)
for item in items:
wf.add_item(item['title'], item['description'], arg=item['arg'], valid=True)
# Send output to Alfred. You can only call this once.
wf.send_feedback()
评论列表
文章目录