Skip to content

Conversation

@guilhem
Copy link
Contributor

@guilhem guilhem commented Mar 8, 2025

This pull request introduces a new show command to the Kubeswitch tool, which allows users to display the kubeconfig for a specified context. The changes include the creation of a new command file and the implementation of the corresponding functionality to retrieve and display the kubeconfig.

New command implementation:

  • cmd/switcher/show.go: Added a new show command that initializes the necessary components and displays the kubeconfig for the specified context.

Functionality to retrieve kubeconfig:

  • pkg/subcommands/show/show.go: Implemented the Show function, which searches for the specified context and retrieves the corresponding kubeconfig data.

Copy link
Owner

@danielfoehrKn danielfoehrKn left a comment

Choose a reason for hiding this comment

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

great idea, thanks for adding it.

@danielfoehrKn danielfoehrKn merged commit de12c1a into danielfoehrKn:master Mar 13, 2025
1 check 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.

2 participants