commitizen / commitizen/cz-cli
add visual aids to indicate exhaustion of options
- 主要言語
- JavaScript
- スター
- 17.5k
- フォーク
- 566
- 平均マージ
- 8時間 16分
- マージ済み PR(30日)
- 1
説明
When I scroll all the way down to `revert`, it cycles down to `feat`. I can't easily figure out if I've exhausted all the options
This is from the perspective of a new user.
I would love to see one of two changes:
## Option One
Pressing down at the bottom places the cursor with `feat` at the _top of the list_. Currently it selects `feat` but without doesn't indicate that it's the end of available options.
```
? Select the type of change that you're committing: (Use arrow keys)
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing tests or correcting existing tests
build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
chore: Other changes that don't modify src or test files
❯ revert: Reverts a previous commit
```
```
? Select the type of change that you're committing: (Use arrow keys)
❯ feat: A new feature
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing tests or correcting existing tests
build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
```
## Option 2
Add a blank line at the end to signify we're at the end of possible options.
```
? Select the type of change that you're committing: (Use arrow keys)
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing tests or correcting existing tests
build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
chore: Other changes that don't modify src or test files
❯ revert: Reverts a previous commit
```
```
? Select the type of change that you're committing: (Use arrow keys)
perf: A code change that improves performance
test: Adding missing tests or correcting existing tests
build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
chore: Other changes that don't modify src or test files
revert: Reverts a previous commit
❯ feat: A new feature
fix: A bug fix
docs: Documentation only changes
```
コントリビューションガイド
調査の方向性
ソースファイルもテストも指定されていません。まず、コミットタイプの選択プロンプトをレンダリングする CLI コードから始め、次に `revert` から `feat` へのスクロールがどのように処理されるかを確認してください。完了とは、利用可能なオプションをすべて使い果たしたことがインターフェースに明確に表示されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100