-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple accounts for deployment #703
base: master
Are you sure you want to change the base?
Conversation
Add support for several --account flags. The accounts passed must already have been logged in. `force import` uses a mutex to synchonize concurrent deployments.
75cc0f4
to
d079636
Compare
if _apiVersion != "" { | ||
err := SetApiVersion(_apiVersion) | ||
if err != nil { | ||
ErrorAndExit(err.Error()) | ||
} | ||
} | ||
|
||
force = manager.getCurrentForce() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to only allow multiple --account
options for commands that have been updated to support it. It's confusing if we accept multiple accounts then don't use them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which commands should support multiple accounts? Besides import
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we also need to make sure that accounts are unique
deployments.Add(1) | ||
go func() { | ||
defer deployments.Done() | ||
err := deployWith(current, &status, files, &options, displayOptions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'll need to return the results so we can combine them. We'll get invalid output, especially with --reporttype junit
, if we let each goroutine write it its own results.
Add support for several --account flags. The accounts passed must already have been logged in.
force import
uses a mutex to synchonize concurrent deployments.