10 lines
264 B
Python
10 lines
264 B
Python
from argparse import Namespace
|
|
|
|
from chromy.utilities import format_query_result, print_lines, run_query
|
|
|
|
|
|
def handle_query(args: Namespace) -> int:
|
|
result = run_query(args.collection, args.query_text)
|
|
print_lines(format_query_result(result))
|
|
return 0
|