Closed
Conversation
This commit introduces a new 'list' subcommand to the git-switcher CLI. The 'list' command allows you to: - View all saved git configuration profiles stored in ~/.config/gitconfigs. - Quickly identify the currently active git profile, which is highlighted in the output. The implementation includes: - A new 'cmd/list.go' file for the 'list' subcommand logic. - Registration of the 'list' command in 'cmd/root.go'. - Removal of the interactive profile listing from the root command's default action; you are now guided to use 'git-switcher switch' for interactive mode or 'git-switcher list' for listing. - Unit tests for the 'list' command in 'cmd/list_test.go', covering various scenarios like basic listing, current profile indication, and no profiles. - Updated 'README.md' to include documentation for the new 'list' command.
This commit removes commented-out code and unnecessary explanatory comments from the cmd/root.go file. The changes aim to improve code clarity and readability by removing clutter that is no longer relevant to the current state of the codebase. Valuable comments explaining the purpose of key components have been retained.
This commit removes artifact comments, such as '// Removed unused import' and other development remnants, from various .go files. These changes improve the overall cleanliness and readability of the codebase by removing comments that were left behind by automated tooling or during previous development stages and serve no current documentary purpose.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces a new 'list' subcommand to the git-switcher CLI.
The 'list' command allows you to:
The implementation includes: