Zhengqbbb / cz-git

cz-git | czg πŸ› οΈ DX first and more engineered, lightweight, customizable, standard output format Commitizen adapter and CLI
https://cz-git.qbb.sh
MIT License
1.05k stars 39 forks source link

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

Closed Zhengqbbb closed 9 months ago

Zhengqbbb commented 9 months ago

Related ISSUE

Input follow ISSUE URL address

147

Type Of Change

Clear Describe

A clear and concise description of what update for target.

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