Skip to content

Conversation

@jabr
Copy link
Contributor

@jabr jabr commented Nov 9, 2025

Removes --context option from individual commands and replaces it with a global option.

That global option stores the value on the CLI struct (as overrideContext) that internal/cli/cli.go then uses in ConnectCluster* and other functions instead of a function argument passing the context override.

@jabr jabr changed the title refactor: [draft] Make --context cli flag a global option refactor: Make --context cli flag a global option Nov 10, 2025
@jabr jabr force-pushed the make-context-flag-global-option branch 2 times, most recently from d4e1616 to 1ed7732 Compare November 14, 2025 06:55
@jabr jabr force-pushed the make-context-flag-global-option branch from 1ed7732 to 0572fec Compare November 19, 2025 06:24
Copy link
Owner

@psviderski psviderski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change, thank you! ❤️

@psviderski psviderski merged commit 939645e into psviderski:main Nov 19, 2025
4 checks passed
@jabr jabr deleted the make-context-flag-global-option branch November 27, 2025 07:03
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.

2 participants