Skip to content

Commit

Permalink
Add a template cli command placeholder to not forget
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Mar 11, 2023
1 parent 5407ee2 commit 38e8d6f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ckanext/search_schema/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 38e8d6f

Please sign in to comment.