Skip to content

feat(session): add sessions delete subcommand (delete_session)#147

Merged
chmmou merged 1 commit into
mainfrom
feat/session-delete-subcommand
May 15, 2026
Merged

feat(session): add sessions delete subcommand (delete_session)#147
chmmou merged 1 commit into
mainfrom
feat/session-delete-subcommand

Conversation

@chmmou

@chmmou chmmou commented May 15, 2026

Copy link
Copy Markdown
Owner

Adds kasapi-cli sessions delete: invalidates the resolved profile's cached session token server-side (KAS API delete_session) and removes the local sessions.toml entry. Idempotent — a missing or already-invalid (unknown_session) session exits 0; other transport/KAS errors exit non-zero after the local cache is cleared. No confirmation prompt (session deletion only forces a re-auth).

The fixtures show add_session is the KasAuth credential-token flow already covered by internal/auth, so it gets no subcommand. The delete_session use case now lives in internal/session (session.Client); config use-profile's revoke path delegates to it.

Closes #60

@chmmou chmmou merged commit 2a425ae into main May 15, 2026
6 checks passed
@chmmou chmmou deleted the feat/session-delete-subcommand branch May 15, 2026 17:16
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.

feat: session writes — add_session / delete_session (KasApi.php)

1 participant