stubber.commands.switch_cmd¶
switch to a specific version of the micropython repos
Attributes¶
Functions¶
|
Switch to a specific version of the micropython repos. |
Module Contents¶
- stubber.commands.switch_cmd.VERSION_LIST¶
- stubber.commands.switch_cmd.cli_switch(path: str | pathlib.Path, tag: str | None = 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
- Parameters:
path (Union[str, pathlib.Path])
tag (Optional[str])