stackit-cli
stackit-cli copied to clipboard
--assume-yes flag does not skip interactive mode if session is expired
Description
When using commands that require authentication like f.e. stackit mariadb plans -y the -y flag does not skip the interactive mode if the session is expired.
Steps to reproduce
- Wait till session is expired
- Run
stackit mariadb plans -y
Actual behavior
Get printed Your session has expired, press Enter to login again... and CLI is waiting for user input.
Expected behavior
Unfortunately im unaware if and how to delete the session manually, so I have to wait for the expiration. But I'd expect something like this followed by the result of the executed stackit command:
Your browser has been opened to visit:
https://accounts.stackit.cloud/oauth/v2/authorize?client_id=...
Definitely I expect the CLI to open the browser without user input and return and not waiting for user input.
Environment
- OS: macOS
- Version of STACKIT CLI: 0.47.0
Hi @j1n-o9r, thank you for submitting this issue. We will have a look at it.