Commit ab6a89f3 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

[editor_cli] nitpick

parent e92f2cfd
......@@ -85,13 +85,6 @@ refresh_environment_cache_flag = click.option(
)
START_EPILOG = """\b
Example:
$ beat editor start
"""
@with_plugins(pkg_resources.iter_entry_points("beat.editor.cli"))
@click.group(cls=AliasedGroup)
@click.option(
......@@ -124,7 +117,13 @@ def editor(ctx, environments):
QCoreApplication.setApplicationVersion(version.__version__)
@editor.command(epilog=START_EPILOG)
@editor.command(
epilog="""\b
Example:
$ beat editor start
"""
)
@click.pass_context
@refresh_environment_cache_flag
@raise_on_error
......@@ -146,14 +145,13 @@ def start(ctx):
return app.exec_()
EDIT_EPILOG = """\b
@editor.command(
epilog="""\b
Example:
$ beat editor edit algorithm user/my_algo/1
"""
@editor.command(epilog=EDIT_EPILOG)
)
@click.argument("asset_type")
@click.argument("asset_name")
@click.pass_context
......@@ -176,14 +174,13 @@ def edit(ctx, asset_type, asset_name):
return app.exec_()
ENV_REFRESH_EPILOG = """\b
@editor.command(
epilog="""\b
Example:
$ beat editor refresh_env
"""
@editor.command(epilog=ENV_REFRESH_EPILOG)
)
@click.option(
"--type",
"-t",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment