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.
Problem Statement
Today, only releases.new and releases.uploadSourcemaps support supplying multiple projects via the
getProjectFlagsFromOptionshelper:sentry-cli/js/releases/index.js
Lines 53 to 56 in 8c6e63e
sentry-cli/js/releases/index.js
Lines 197 to 199 in 8c6e63e
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.