import sys

__author__ = "Marcin Kulik"
__version__ = "2.3.0"

if sys.version_info < (3, 6):
    raise ImportError("Python < 3.6 is unsupported.")

# pylint: disable=wrong-import-position
from typing import Any, Optional

from .recorder import record


def record_asciicast(  # pylint: disable=too-many-arguments
    path_: str,
    command: Any = None,
    append: bool = False,
    idle_time_limit: Optional[int] = None,
    record_stdin: bool = False,
    title: Optional[str] = None,
    command_env: Any = None,
    capture_env: Any = None,
) -> None:
    record(
        path_,
        command=command,
        append=append,
        idle_time_limit=idle_time_limit,
        record_stdin=record_stdin,
        title=title,
        command_env=command_env,
        capture_env=capture_env,
    )
