Skip to content

Implement update command on Linux #5

@patrickfreed

Description

@patrickfreed

The update command accepts a selector and updates the newest matching toolchain to the newest available matching toolchain, if any. This happens in a few steps:

  • List installed toolchains to see if any match the selector
    • If no selector is provided, match the currently in-use toolchain
  • If one is found, list available toolchains, and see if any matches the selector and is newer than the found toolchain
  • Uninstall the found toolchain
  • Install the newer toolchain
    • If the updated toolchain was in use, mark the new one as in use

Updating depends on the functionality from a bunch of other commands, so they will need to be done first (#2, #4).

Metadata

Metadata

Assignees

Labels

linuxIssues related to implementing the Linux swiftly executable

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions