mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
feat: add move to drawer for script and flows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user