Problem Statement
Today, only releases.new and releases.uploadSourcemaps support supplying multiple projects via the getProjectFlagsFromOptions helper:
|
async new(release, options) { |
|
const args = ['releases', 'new', release].concat(helper.getProjectFlagsFromOptions(options)); |
|
return this.execute(args, null); |
|
} |
|
const args = ['sourcemaps', 'upload'] |
|
.concat(helper.getProjectFlagsFromOptions(options)) |
|
.concat(['--release', release]); |
Briefly looking over the rust code-base, it seems that more commands support passing multiple projects.
Solution Brainstorm
Align the JS API with the Rust API to allow passing multiple projects to all commands that have a JS counterpart and support passing multiple projects.
We should be able to use the same helper and approach as in the above mentioned apis.