|
9 | 9 | from dataall_core.dataall_client import DataallClient |
10 | 10 | from dataall_core.profile import CONFIG_PATH |
11 | 11 |
|
12 | | -from .bind_commands import bind |
13 | | -from .utils import save_config |
| 12 | +from dataall_cli.bind_commands import bind |
| 13 | +from dataall_cli.utils import save_config |
14 | 14 |
|
15 | 15 | DA_CONFIG_PATH = os.getenv("dataall_config_path", CONFIG_PATH) |
16 | 16 | CREDS_PATH = os.getenv("dataall_creds_path", None) |
|
36 | 36 | @click.group(name="dataall_cli", invoke_without_command=True) |
37 | 37 | def dataall_cli() -> None: |
38 | 38 | """data.all cli groups.""" |
39 | | - click.echo("Executing dataall_cli.") |
| 39 | + click.echo("Executing dataall_cli.", err=True) |
40 | 40 | pass |
41 | 41 |
|
42 | 42 |
|
@@ -112,7 +112,7 @@ def configure( |
112 | 112 | profile: str, |
113 | 113 | ) -> None: |
114 | 114 | """Configure data.all client for a given user, use profile to setup multiple user profiles.""" |
115 | | - click.echo("Configuring data.all CLI...") |
| 115 | + click.echo("Configuring data.all CLI...", err=True) |
116 | 116 |
|
117 | 117 | try: |
118 | 118 | profile_params_dict = { |
@@ -143,6 +143,6 @@ def configure( |
143 | 143 | params_dict=profile_params_dict, |
144 | 144 | config_path=Path(DA_CONFIG_PATH), |
145 | 145 | ) |
146 | | - click.echo("data.all CLI configured successfully.") |
| 146 | + click.echo("data.all CLI configured successfully.", err=True) |
147 | 147 | except Exception as e: |
148 | | - click.echo(f"An error occurred: {e}") |
| 148 | + click.echo(f"An error occurred: {e}", err=True) |
0 commit comments