Optum / dce-cli

Disposable Cloud Environment CLI
Apache License 2.0
37 stars 19 forks source link

Allow printing lease login URL without having to open a browser #89

Open nelsonjchen opened 3 years ago

nelsonjchen commented 3 years ago

Is your feature request related to a problem? Please describe. dce leases login --open-browser requires a browser to be configured in the environment and will open in the default session of the default browser.

The "default" might not work for everyone or it could be broken.

Sometimes you may not want to open the console in your default browser and maybe in another profile with some other browser or browsing container. Or maybe your xdg-open or similar utility is busted like out of the box with WSL.

I've seen other utilities like Google ones offer a fallback to visit a URL printed out if an interactive web browser can't be called open for whatever reason.

Describe the solution you'd like Have an option to print out the URL to be opened with dce leases login --open-browser and not actually open the browser.

Describe alternatives you've considered I don't know where to search or what. This operation seems to differ by platform too. For me, I've setup xdg-open in WSL2 to actually open correctly to Windows. This might not work for other user setups.

Additional context