Skip to content

--assume-yes flag does not skip interactive mode if session is expired #1084

@j1n-o9r

Description

@j1n-o9r

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

  1. Wait till session is expired
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions