def main(wf):
    if len(wf.args):
        query = wf.args[0]
    else:
        query = None

    result = None

    if query:
        result = get_expanded_hayaku_snippet(query)

    if result:
        print(result, end="")
def main(wf):
  if len(wf.args):
      query = wf.args[0]
  else:
      query = None

  result = None

  if query:
    result = get_expanded_hayaku_snippet(query)

  if result:
    print(result, end="")
示例#3
0
def main(wf):
    if len(wf.args):
        query = wf.args[0]
    else:
        query = None

    result = None

    if query:
        result = get_expanded_hayaku_snippet(query)

    if result:
        wf.add_item(title=result,
                    subtitle='Expand using Hayaku',
                    arg=result,
                    valid=True)

    wf.send_feedback()
def main(wf):
  if len(wf.args):
      query = wf.args[0]
  else:
      query = None

  result = None

  if query:
    result = get_expanded_hayaku_snippet(query)

  if result:
    wf.add_item(
      title=result,
      subtitle='Expand using Hayaku',
      arg=result,
      valid=True
      )

  wf.send_feedback()