From 38e8d6fe369a3249cfa58655639ab3111d017b25 Mon Sep 17 00:00:00 2001 From: mutantsan Date: Sat, 11 Mar 2023 23:37:40 +0200 Subject: [PATCH] Add a template cli command placeholder to not forget --- ckanext/search_schema/cli.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ckanext/search_schema/cli.py b/ckanext/search_schema/cli.py index 78de4d4..d33efe5 100644 --- a/ckanext/search_schema/cli.py +++ b/ckanext/search_schema/cli.py @@ -61,7 +61,10 @@ def check(): _echo_colorized(json.dumps(check_result, indent=4)) click.secho("There are some problems in your schema definition.", fg="red") - click.secho("Consider running " + click.style("ckan search-schema create", fg="green")) + click.secho( + "Consider running " + + click.style("ckan search-schema create", fg="green") + ) @search_schema.command() @@ -133,6 +136,12 @@ def copy_fields(field_name: str): _echo_colorized(json.dumps(fields, indent=4)) +@search_schema.command() +def template(): + """Get a basic search schema template""" + click.secho("Not implemented yet.", fg="red") + + def _echo_colorized(json_data: str): """Colorize JSON output with pygments library""" click.echo(