stubber.commands.switch_cmd =========================== .. py:module:: stubber.commands.switch_cmd .. autoapi-nested-parse:: switch to a specific version of the micropython repos Attributes ---------- .. autoapisummary:: stubber.commands.switch_cmd.VERSION_LIST Functions --------- .. autoapisummary:: stubber.commands.switch_cmd.cli_switch Module Contents --------------- .. py:data:: VERSION_LIST .. py:function:: cli_switch(path: Union[str, pathlib.Path], tag: Optional[str] = None) Switch to a specific version of the micropython repos. TAG can be: - A version tag (e.g., v1.22.0, v1.21.0) - A branch name (e.g., master, develop) - A commit hash (e.g., abc123def456) - Special values: preview, latest, stable The Micropython-lib repo will be checked out to a commit that corresponds in time to that version tag, in order to allow non-current versions to be stubbed correctly. The repos must be cloned already