fly-apps/fly-laravel

Retrieve organizations in the background while asking the app name

Johannes-Werbrouck opened this issue · 1 comments

Retrieving the organizations takes a bit of time. It would be convenient if we could launch the request before asking the user for app name input. This way, once the user is done typing the 'select organization" menu will be populated already.

Try using an async http request to retrieve organizations in the background, this should allow the cli to proceed with the app name prompt while it processes the request in the background.

Then only show the select organization menu when the request completes and the org list has been identified. This received org list can be sent to the select org menu function as parameter to populate the menu's list