|
1 |
| -# -*- coding: UTF-8 -*- |
2 |
| -# |
3 |
| -# Copyright 2019-2023 Flávio Gonçalves Garcia |
| 1 | +# Copyright 2019-2024 Flavio Garcia |
4 | 2 | #
|
5 | 3 | # Licensed under the Apache License, Version 2.0 (the "License");
|
6 | 4 | # you may not use this file except in compliance with the License.
|
|
14 | 12 | # See the License for the specific language governing permissions and
|
15 | 13 | # limitations under the License.
|
16 | 14 |
|
17 |
| -from . import DEFAULT_ACCOUNT_PATH, LETS_ENCRYPT_PRODUCTION |
18 |
| -from . import load_account |
19 |
| -from .. import messages |
20 |
| -from ..errors import AutomatoesError |
| 15 | +from automatoes.cli import DEFAULT_ACCOUNT_PATH, LETS_ENCRYPT_PRODUCTION |
| 16 | +from automatoes.cli import load_account |
| 17 | +from automatoes import messages |
| 18 | +from automatoes.errors import AutomatoesError |
21 | 19 |
|
22 | 20 | from cartola import config, sysexits
|
23 | 21 | import click
|
@@ -53,9 +51,10 @@ def account_files(self):
|
53 | 51 |
|
54 | 52 | pass_context = click.make_pass_decorator(AutomatoesCliContext,
|
55 | 53 | ensure=True)
|
| 54 | +config = config.load_yaml_file(AUTOMATOES_CONFIG_FILE) |
56 | 55 |
|
57 | 56 |
|
58 |
| -@taskio.root(taskio_conf=config.load_yaml_file(AUTOMATOES_CONFIG_FILE)) |
| 57 | +@taskio.root(root="taskio", taskio_conf=config) |
59 | 58 | @click.option("-a", "--account", help=messages.OPTION_ACCOUNT_HELP,
|
60 | 59 | default=DEFAULT_ACCOUNT_PATH, show_default=True)
|
61 | 60 | @click.option("-s", "--server", help=messages.OPTION_SERVER_HELP,
|
|
0 commit comments