mas-cli / mas-cli/mas

Parallelize `get`, `install` & `update`

Open
#586 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Swift
Stars
12.4k
Forks
299
Avg merge
1d 2h
Merged PRs (30d)
1

Description

Parallelize get, install & update.

Parallelization is more complex for these commands than for other commands, because they update existing terminal lines to update process bars. Currently, mas just updates the current line, but parallel downloads will require different lines being updated depending on which app's progress is being updated.

When an error occurs for a single parallel operation, other operations that can succeed should be let finish.

Probably not worth parallelizing uninstall, as that should be quick & not run much.

Swift Concurrency: async let, TaskGroup & withTaskGroup.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the get, install, and update command implementations and their terminal progress-bar updates. Review Swift Concurrency's async let, TaskGroup, and withTaskGroup, then define how each app's progress remains on the correct terminal line. Done means eligible operations run in parallel and a failure in one operation does not prevent other operations from finishing.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.