feat: add move to drawer for script and flows

This commit is contained in:
Ruben Fiszel
2022-12-21 06:55:24 +01:00
parent f7a40d5284
commit 8fe77cf15a
20 changed files with 179 additions and 50 deletions
+10
View File
@@ -4,6 +4,7 @@ from typing import Generic, TypeVar, TypeAlias
import os
from time import sleep
from windmill_api.models.whoami_response_200 import WhoamiResponse200
from windmill_api.client import AuthenticatedClient
@@ -179,6 +180,15 @@ def get_resource(path: str | None = None, none_if_undefined: bool = False) -> An
return _transform_leaf(raw)
def whoami() -> WhoamiResponse200 | None:
"""
Returns the current user
"""
from windmill_api.api.user import whoami
return whoami.sync(client=create_client(), workspace=get_workspace())
def get_state() -> Any:
"""
Get the state