feat(czg)!: using switch flag to replace subcmd. arg as types search keyword #149
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.
Related ISSUE
#147
Type Of Change
Clear Describe
Description
Using switch flag
Actually,
subcmd
is intended for functional categorization within commands. e.ggit branch
andgit config
.Or is action of command like
add
rm
. e.gbun add
npm uninstall
Initially designed as
czg ai
orczg emoji
were aimed at highlighting configure activation. However, it might be better for both to be switch flags (likeczg --retry|-r
).For example, when we need to activate more than two switches, the input becomes quite redundant, which hampers the quick use of the command.
Args => using search keywords for
types
itemsczg ix
==> will pin thefix
item to the top of choose list ==> EnterThis design helps individuals whose subconscious is already familiar with the types, enabling a swift transition to inputting the
subject
(short description)Test Case