INNER CODE UNIT · Python

_cwd_override

ohdearquant/lionagi · lionagi/cli/main.py:311

            _cwd_override = _pre_sentinel[_i + 1]
        elif _tok.startswith("--cwd="):
            _cwd_override = _tok.split("=", 1)[1]

    # The first of the two settings-driven notify bootstrap points (Studio
    # service startup is the other); resolution failures are swallowed inside.
    from lionagi.state.lifecycle.notify_settings import register_settings_terminal_callback

    register_settings_terminal_callback(project_dir=_cwd_override)

    # `li skill NAME` dispatches directly, never falling through to argparse.
    if _argv and _argv[0] == "skill":
        return run_skill(_argv[1:])

    # `li play NAME [...]` is sugar for `li o flow -p NAME [...]`; rewrite
    # argv before argparse runs (also handles `li play list`).
    rewritten = _handle_play_shortcut(_argv)
    if isinstance(rewritten, int):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…