[update] implement '--update-to'

to switch between update channels (stable or dev (alias nightly & master))
or to install a specific version

Examples:
--update-to dev
--update-to dev@2024.05.25
--update-to v1.25.2
This commit is contained in:
Mike Fährmann
2024-05-28 20:37:43 +02:00
parent 5018bd42f8
commit 53aadb0c44
2 changed files with 66 additions and 20 deletions

View File

@@ -179,6 +179,11 @@ def build_parser():
dest="update", action="store_const", const="latest",
help="Update to the latest version",
)
general.add_argument(
"--update-to",
dest="update", metavar="[CHANNEL@]TAG",
help="Upgrade/downgrade to a specific version",
)
general.add_argument(
"--update-check",
dest="update", action="store_const", const="check",