unitelabs.cdk.utils

Functions

  • coroutine(function : typing.Callable) -> typing.Callable

    Wraps click cli commands to run asynchronously.

    Parameters

    • Name
      function
      Type
      typing.Callable
      Default
      Description

    Response

    Type
    typing.Callable
    Description

  • find_factory() -> str

    Search the factory method in the current working directory.

    Response

    Type
    str
    Description

    The location of the factory method in the form 'module:name'.

  • walk(
      self,
      top_down,
      on_error
    ) -> typing.Iterable[tuple[str, list[str], list[str]]]

    Walk the directory tree from this directory, similar to os.walk().

    Parameters

    • Name
      self
      Type
      Default
      Description

    • Name
      top_down
      Type
      Default
      = True
      Description

    • Name
      on_error
      Type
      Default
      = None
      Description

    Response

    Type
    typing.Iterable[tuple[str, list[str], list[str]]]
    Description

Copyright © 2024