diff --git a/dccmd/__init__.py b/dccmd/__init__.py index 33153a0..bda63ff 100644 --- a/dccmd/__init__.py +++ b/dccmd/__init__.py @@ -4,7 +4,7 @@ """ -__version__ = "0.3.4" +__version__ = "0.3.5" # std imports import sys diff --git a/dccmd/main/auth/__init__.py b/dccmd/main/auth/__init__.py index b50c16b..554ca10 100644 --- a/dccmd/main/auth/__init__.py +++ b/dccmd/main/auth/__init__.py @@ -7,36 +7,23 @@ # std import import sys import asyncio -import logging # external imports import typer -import httpx -from dracoon import DRACOON, OAuth2ConnectionType -from dracoon.client import DRACOONConnection -from dracoon.errors import HTTPUnauthorizedError, DRACOONHttpError, HTTPNotFoundError # internal imports from .credentials import ( get_credentials, - store_credentials, delete_credentials, - get_client_credentials, - store_client_credentials, - delete_client_credentials, get_crypto_credentials, - store_crypto_credentials, delete_crypto_credentials, ) from .util import login from ..util import ( format_error_message, format_success_message, - graceful_exit, parse_base_url, ) -from ..models.errors import DCClientParseError - auth_app = typer.Typer() @@ -104,5 +91,6 @@ async def _ls(): typer.echo( f"Username: {dracoon.user_info.userName} ({dracoon.user_info.firstName} {dracoon.user_info.lastName})" ) - + await dracoon.logout() + asyncio.run(_ls()) diff --git a/pyproject.toml b/pyproject.toml index 74648f9..ed63e36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dccmd" -version = "0.3.4" +version = "0.3.5" description = "DRACOON Commander – CLI client for DRACOON Cloud (dracoon.com)" authors = ["Octavio Simone <70800577+unbekanntes-pferd@users.noreply.github.com>"] license = "Apache-2.0"