Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
ab6a89f3
Commit
ab6a89f3
authored
Jul 28, 2020
by
Amir MOHAMMADI
Browse files
[editor_cli] nitpick
parent
e92f2cfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/scripts/editor_cli.py
View file @
ab6a89f3
...
...
@@ -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"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment