Skip to content

feat(cli): add context show and session status commands#3096

Open
atharvalade wants to merge 4 commits intoapache:masterfrom
atharvalade:cli-context-show-session-status
Open

feat(cli): add context show and session status commands#3096
atharvalade wants to merge 4 commits intoapache:masterfrom
atharvalade:cli-context-show-session-status

Conversation

@atharvalade
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #3000

Rationale

The CLI lacked observability into context configuration and login session state, forcing users to manually read ~/.iggy/contexts.toml or run authenticated commands to check connectivity.

What changed?

Previously there was no way to inspect what a context contains or whether a login session is active without workarounds. Users had to read raw TOML files or run iggy me and hope it worked.

This adds iggy context show <name> to display a named context's full configuration (transport, addresses, TLS, credentials with masking) and iggy session status to check the local keyring for an active login session and show which server it targets — both without requiring a server connection.

Local Execution

  • Passed
  • Pre-commit hooks ran

AI Usage

  1. Opus 4.6
  2. Minimal AI used
  3. Yes all code can be explained

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

❌ Patch coverage is 47.94521% with 38 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.54%. Comparing base (735e1fc) to head (1d6582f).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...re/cli/src/commands/binary_context/show_context.rs 66.00% 4 Missing and 13 partials ⚠️
...e/cli/src/commands/binary_system/session_status.rs 0.00% 16 Missing ⚠️
core/cli/src/main.rs 28.57% 5 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             master    #3096       +/-   ##
=============================================
- Coverage     72.77%   55.54%   -17.24%     
  Complexity      943      943               
=============================================
  Files          1117     1117               
  Lines         96368    86170    -10198     
  Branches      73543    63349    -10194     
=============================================
- Hits          70134    47864    -22270     
- Misses        23686    35762    +12076     
+ Partials       2548     2544        -4     
Components Coverage Δ
Rust Core 49.86% <47.94%> (-23.68%) ⬇️
Java SDK 62.30% <ø> (ø)
C# SDK 69.46% <ø> (+0.05%) ⬆️
Python SDK 81.43% <ø> (ø)
Node SDK 91.53% <ø> (+0.12%) ⬆️
Go SDK 39.25% <ø> (-0.17%) ⬇️
Files with missing lines Coverage Δ
core/cli/src/args/context.rs 100.00% <ø> (ø)
core/cli/src/args/mod.rs 78.57% <ø> (ø)
core/cli/src/main.rs 90.97% <28.57%> (-1.25%) ⬇️
...e/cli/src/commands/binary_system/session_status.rs 0.00% <0.00%> (ø)
...re/cli/src/commands/binary_context/show_context.rs 66.00% <66.00%> (ø)

... and 236 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

(cli): Add context show and session status commands to CLI

1 participant