stubber.commands.switch_cmd

switch to a specific version of the micropython repos

Module Contents

Functions

cli_switch(path[, tag])

Switch to a specific version of the micropython repos.

Attributes

VERSION_LIST

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.

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 repros must be cloned already

Parameters: