Skip to content

Add CLI context management commands#73

Merged
Furisto merged 1 commit into
mainfrom
context-cmds
Dec 30, 2025
Merged

Add CLI context management commands#73
Furisto merged 1 commit into
mainfrom
context-cmds

Conversation

@Furisto
Copy link
Copy Markdown
Owner

@Furisto Furisto commented Dec 30, 2025

Implement a complete context management system for the CLI allowing users to:

  • List configured contexts with endpoint, kind, and auth status
  • Display the current active context
  • Switch between contexts with support for returning to previous context via
  • Add new contexts with auto-detection of connection type (unix/http)
  • Remove contexts with confirmation prompt or force flag

Changes include:

  • New context subcommand group and five subcommands (add, list, current, use, remove)
  • Comprehensive test coverage for all context operations and edge cases
  • Support for authentication tokens stored in system keyring
  • Extended context schema to track previous context for quick switching
  • Keyring mock generation for testing secure credential operations

Implement a complete context management system for the CLI allowing users to:
- List configured contexts with endpoint, kind, and auth status
- Display the current active context
- Switch between contexts with support for returning to previous context via
- Add new contexts with auto-detection of connection type (unix/http)
- Remove contexts with confirmation prompt or force flag

Changes include:
- New context subcommand group and five subcommands (add, list, current, use, remove)
- Comprehensive test coverage for all context operations and edge cases
- Support for authentication tokens stored in system keyring
- Extended context schema to track previous context for quick switching
- Keyring mock generation for testing secure credential operations

Co-authored-by: construct-agent <noreply@construct.sh>
@Furisto Furisto marked this pull request as ready for review December 30, 2025 14:54
@Furisto Furisto merged commit 1380980 into main Dec 30, 2025
1 of 2 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.

1 participant