Commit 4f78236
authored
Suppress
## Changes
Suppress `xdg-open` warnings when opening a browser for `auth login`.
## Why
Before:
```
$ databricks auth login --profile myprofile
/usr/bin/xdg-open: 869: www-browser: not found
/usr/bin/xdg-open: 869: links2: not found
/usr/bin/xdg-open: 869: elinks: not found
/usr/bin/xdg-open: 869: links: not found
/usr/bin/xdg-open: 869: lynx: not found
/usr/bin/xdg-open: 869: w3m: not found
xdg-open: no method available for opening 'https://...'
Please open https://... in the browser to continue authenticationProfile myprofile was successfully saved
```
After (includes
databricks/databricks-sdk-go#1334):
```
$ databricks auth login --profile myprofile
Please continue the authentication process in your browser:
https://...
Profile myprofile was successfully saved
```
## Tests
Manual only.xdg-open warnings in auth login command (#3991)1 parent bef542c commit 4f78236
1 file changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
317 | 334 | | |
318 | 335 | | |
319 | 336 | | |
| |||
323 | 340 | | |
324 | 341 | | |
325 | 342 | | |
326 | | - | |
| 343 | + | |
327 | 344 | | |
328 | 345 | | |
329 | | - | |
| 346 | + | |
330 | 347 | | |
331 | 348 | | |
332 | 349 | | |
| |||
0 commit comments