Closed mwbrooks closed 11 years ago
Currently, the public API requires the user to call login in order to capture the api object. Then the object can be passed into each command.
api
The fact is you only need api for phonegap-build-cli.
phonegap-build-cli
Also, sometimes you cannot easily expose api globally.
phonegap-build-cli should keep it's own state. Each command should be able to retrieve the api object.
The user can subscribe to the login event in order to handle the case where a login is required.
login
Overview
Currently, the public API requires the user to call login in order to capture the
api
object. Then the object can be passed into each command.Problem
The fact is you only need
api
forphonegap-build-cli
.Also, sometimes you cannot easily expose
api
globally.Solution
phonegap-build-cli
should keep it's own state. Each command should be able to retrieve theapi
object.The user can subscribe to the
login
event in order to handle the case where a login is required.