Skip to content

support --upgrade flag #40

@dankeboy36

Description

@dankeboy36

Add support for upgrading an installed tool when the requested version is newer.

AC:

  • --upgrade and --ok-if-exists must be mutually exclusive
  • the version compare must be semver, not string
  • Details:
    • default (no flags): errors if tool exists
    • --ok-if-exists: skips if exists, exit 0
    • --upgrade: if exists and is installed lt requested -> download; else skip and exit 0
    • --force: always download/overwrite

It requires all tools to provide a version command/flag.
Blocked by arduino/arduino-language-server#196

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions