-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
35 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
"""CLI Wrapper used by cli.py""" | ||
import click | ||
|
||
from click import echo | ||
from es_client.cli_example import run | ||
|
||
if __name__ == '__main__': | ||
try: | ||
# This is because click uses decorators, and pylint doesn't catch that | ||
# pylint: disable=no-value-for-parameter | ||
run() | ||
except RuntimeError as e: | ||
except RuntimeError as err: | ||
import sys | ||
print('{0}'.format(e)) | ||
sys.exit(1) | ||
|
||
echo(f'{err}') | ||
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
elasticsearch8==8.14.0 | ||
elasticsearch8==8.15.0 | ||
voluptuous>=0.14.2 | ||
pyyaml==6.0.1 | ||
pint>=0.19.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
#!/usr/bin/env python | ||
# pylint: disable=broad-except, no-value-for-parameter | ||
""" | ||
Wrapper for running a script from source. | ||
""" | ||
import sys | ||
import click | ||
"""Script to run locally""" | ||
|
||
from click import echo | ||
from es_client.cli_example import run | ||
|
||
if __name__ == '__main__': | ||
try: | ||
# This is because click uses decorators, and pylint doesn't catch that | ||
# pylint: disable=no-value-for-parameter | ||
run() | ||
except RuntimeError as err: | ||
click.echo(f'{err}') | ||
import sys | ||
|
||
echo(f'{err}') | ||
sys.exit(1) | ||
except Exception as err: | ||
if 'ASCII' in str(err): | ||
click.echo(f'{err}') | ||
click.echo(__doc__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
from .builder import Builder | ||
|
||
__all__ = ["Builder"] | ||
__version__ = "8.14.2" | ||
__version__ = "8.15.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
#!/usr/bin/env python | ||
"""Script to run locally""" | ||
|
||
# pylint: disable=broad-except, no-value-for-parameter | ||
""" | ||
Wrapper for running a script from source. | ||
""" | ||
import sys | ||
import click | ||
from click import echo | ||
from es_client.cli_example import run | ||
|
||
if __name__ == "__main__": | ||
if __name__ == '__main__': | ||
try: | ||
# This is because click uses decorators, and pylint doesn't catch that | ||
# pylint: disable=no-value-for-parameter | ||
run() | ||
except RuntimeError as err: | ||
click.echo(f"{err}") | ||
import sys | ||
|
||
echo(f'{err}') | ||
sys.exit(1) | ||
except Exception as err: | ||
if "ASCII" in str(err): | ||
click.echo(f"{err}") | ||
click.echo(__doc__) |