Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(czg)!: using switch flag to replace subcmd. arg as types search keyword #149

Closed
wants to merge 3 commits into from

Conversation

Zhengqbbb
Copy link
Owner

Related ISSUE

Input follow ISSUE URL address

#147

Type Of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • πŸ“ Document (This change requires a documentation update)
  • 🎨 Theme style (Theme style beautification)
  • ⚠ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • πŸ”¨ Workflow (Workflow changes)

Clear Describe

A clear and concise description of what update for target.

  • feat(czg)!: using switch flag to replace subcmd
  • feat(czg)!: command arg as types search keyword

Description

Using switch flag

Actually, subcmd is intended for functional categorization within commands. e.g git branch and git config.
Or is action of command like add rm. e.g bun add npm uninstall

Initially designed as czg ai or czg emoji were aimed at highlighting configure activation. However, it might be better for both to be switch flags (like czg --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.

- czg emoji gpg
+ czg -E -S
- git czg emoji checkbox
+ git czg -cb -E

Args => using search keywords for types items

czg ix ==> will pin the fix item to the top of choose list ==> Enter

This design helps individuals whose subconscious is already familiar with the types, enabling a swift transition to inputting the subject (short description)

Test Case

  • add parse args testcase

@Zhengqbbb Zhengqbbb closed this Dec 6, 2023
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.

None yet

1 participant