diff --git a/fedn/cli/client_cmd.py b/fedn/cli/client_cmd.py index 12a19c2ed..7c9ffc1e7 100644 --- a/fedn/cli/client_cmd.py +++ b/fedn/cli/client_cmd.py @@ -60,8 +60,6 @@ def list_clients(ctx, protocol: str, host: str, port: str, token: str = None, n_ if _token: headers["Authorization"] = _token - click.echo(f"\nListing clients: {url}\n") - click.echo(f"Headers: {headers}") try: response = requests.get(url, headers=headers) @@ -95,8 +93,6 @@ def get_client(ctx, protocol: str, host: str, port: str, token: str = None, id: url = f"{url}{id}" - click.echo(f"\nRetrieving client: {url}\n") - click.echo(f"Headers: {headers}") try: response = requests.get(url, headers=headers) print_response(response, "client", id) diff --git a/fedn/cli/combiner_cmd.py b/fedn/cli/combiner_cmd.py index c6ccbeb19..c6b3d19d7 100644 --- a/fedn/cli/combiner_cmd.py +++ b/fedn/cli/combiner_cmd.py @@ -124,8 +124,6 @@ def get_combiner(ctx, protocol: str, host: str, port: str, token: str = None, id url = f"{url}{id}" - click.echo(f"\nRetrieving combiner: {url}\n") - click.echo(f"Headers: {headers}") try: response = requests.get(url, headers=headers) print_response(response, "combiner", id) diff --git a/fedn/cli/model_cmd.py b/fedn/cli/model_cmd.py index b5f738aad..2e522e5a1 100644 --- a/fedn/cli/model_cmd.py +++ b/fedn/cli/model_cmd.py @@ -44,8 +44,7 @@ def list_models(ctx, protocol: str, host: str, port: str, token: str = None, ses if session_id: url = f"{url}?session_id={session_id}" - click.echo(f"\nListing models: {url}\n") - click.echo(f"Headers: {headers}") + try: response = requests.get(url, headers=headers) print_response(response, "models", None) @@ -80,8 +79,7 @@ def get_model(ctx, protocol: str, host: str, port: str, token: str = None, id: s if id: url = f"{url}{id}" - click.echo(f"\nRetrieving model: {url}\n") - click.echo(f"Headers: {headers}") + try: response = requests.get(url, headers=headers) print_response(response, "model", id) diff --git a/fedn/cli/package_cmd.py b/fedn/cli/package_cmd.py index 13eb582ea..b8a130f68 100644 --- a/fedn/cli/package_cmd.py +++ b/fedn/cli/package_cmd.py @@ -67,8 +67,6 @@ def list_packages(ctx, protocol: str, host: str, port: str, token: str = None, n headers["Authorization"] = _token - click.echo(f"\nListing packages: {url}\n") - click.echo(f"Headers: {headers}") try: response = requests.get(url, headers=headers) print_response(response, "packages", None) @@ -102,8 +100,6 @@ def get_package(ctx, protocol: str, host: str, port: str, token: str = None, id: url = f"{url}{id}" - click.echo(f"\nRetrieving package: {url}\n") - click.echo(f"Headers: {headers}") try: response = requests.get(url, headers=headers) print_response(response, "package", id) diff --git a/fedn/cli/round_cmd.py b/fedn/cli/round_cmd.py index e790a8bdb..2f889fef3 100644 --- a/fedn/cli/round_cmd.py +++ b/fedn/cli/round_cmd.py @@ -43,8 +43,7 @@ def list_rounds(ctx, protocol: str, host: str, port: str, token: str = None, ses if session_id: url = f"{url}?round_config.session_id={session_id}" - click.echo(f"\nListing rounds: {url}\n") - click.echo(f"Headers: {headers}") + try: response = requests.get(url, headers=headers) print_response(response, "rounds", None) @@ -80,8 +79,6 @@ def get_round(ctx, protocol: str, host: str, port: str, token: str = None, id: s url = f"{url}{id}" - click.echo(f"\nRetrieving round: {url}\n") - click.echo(f"Headers: {headers}") try: response = requests.get(url, headers=headers) print_response(response, "round", id) diff --git a/fedn/cli/session_cmd.py b/fedn/cli/session_cmd.py index 4cafa9e6b..a0f1e64c3 100644 --- a/fedn/cli/session_cmd.py +++ b/fedn/cli/session_cmd.py @@ -39,8 +39,6 @@ def list_sessions(ctx, protocol: str, host: str, port: str, token: str = None, n headers["Authorization"] = _token - click.echo(f"\nListing sessions: {url}\n") - click.echo(f"Headers: {headers}") try: response = requests.get(url, headers=headers) print_response(response, "sessions", None) @@ -73,8 +71,6 @@ def get_session(ctx, protocol: str, host: str, port: str, token: str = None, id: url = f"{url}{id}" - click.echo(f"\nRetrieving session: {url}\n") - click.echo(f"Headers: {headers}") try: response = requests.get(url, headers=headers) print_response(response, "session", id) diff --git a/fedn/cli/shared.py b/fedn/cli/shared.py index 5876828fb..21fa2b072 100644 --- a/fedn/cli/shared.py +++ b/fedn/cli/shared.py @@ -74,7 +74,7 @@ def print_response(response, entity_name: str, so): description: name of entity :param so: type: boolean - desriptions: single output format (y/n) + desriptions: single output format return: None """ if response.status_code == 200: diff --git a/fedn/cli/status_cmd.py b/fedn/cli/status_cmd.py index d47e4ab18..9b751f65b 100644 --- a/fedn/cli/status_cmd.py +++ b/fedn/cli/status_cmd.py @@ -42,8 +42,6 @@ def list_statuses(ctx, protocol: str, host: str, port: str, token: str = None, s url = f"{url}?sessionId={session_id}" - click.echo(f"\nListing statuses: {url}\n") - click.echo(f"Headers: {headers}") try: response = requests.get(url, headers=headers) print_response(response, "statuses", None) @@ -76,8 +74,7 @@ def get_status(ctx, protocol: str, host: str, port: str, token: str = None, id: if id: url = f"{url}{id}" - click.echo(f"\nRetrieving status: {url}\n") - click.echo(f"Headers: {headers}") + try: response = requests.get(url, headers=headers) print_response(response, "status", id) diff --git a/fedn/cli/validation_cmd.py b/fedn/cli/validation_cmd.py index 27ff8448d..b7417af5e 100644 --- a/fedn/cli/validation_cmd.py +++ b/fedn/cli/validation_cmd.py @@ -42,8 +42,7 @@ def list_validations(ctx, protocol: str, host: str, port: str, token: str = None if session_id: url = f"{url}?sessionId={session_id}" - click.echo(f"\nListing validations: {url}\n") - click.echo(f"Headers: {headers}") + try: response = requests.get(url, headers=headers) print_response(response, "validations", None) @@ -76,8 +75,6 @@ def get_validation(ctx, protocol: str, host: str, port: str, token: str = None, url = f"{url}{id}" - click.echo(f"\nRetrieving validation: {url}\n") - click.echo(f"Headers: {headers}") try: response = requests.get(url, headers=headers) print_response(response, "validation", id)