Skip to content

fix(cortex-cli): add confirmation prompt to logout command - #50

Merged
Mathis (echobt) merged 1 commit into
masterfrom
fix/bounty-issue-1393
Jan 26, 2026
Merged

Mathis (echobt) merged 1 commit into
masterfrom
fix/bounty-issue-1393

Conversation

@echobt

Copy link
Copy Markdown
Contributor

Summary

Adds a confirmation prompt to the logout command before removing stored credentials. This prevents accidental credential removal.

Changes

  • Added --yes/-y flag to LogoutCommand struct to skip confirmation
  • Updated run_logout() function to prompt for user confirmation when the flag is not set
  • Default behavior now asks for confirmation: "Are you sure you want to log out? [y/N]"

Usage

# With confirmation prompt (default)
cortex logout

# Skip confirmation (for scripts)
cortex logout --yes
cortex logout -y

Related

Fixes CortexLM/bounty#1393

Fixes bounty issue #1393

The logout command now prompts for confirmation before removing credentials.
Users can bypass the prompt using the --yes/-y flag for scripted usage.
@echobt
Mathis (echobt) merged commit e1b2fc2 into master Jan 26, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] logout command has no --force or confirmation options

2 participants