commitizen / commitizen/cz-cli

add visual aids to indicate exhaustion of options

Abierto
#784 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
17.5k
Forks
566
Merge medio
8 h 16 min
PR fusionados (30 d)
1

Descripción

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
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

No se menciona ningún archivo fuente ni ninguna prueba. Empieza por el código CLI que renderiza el mensaje de selección del tipo de commit y, a continuación, verifica cómo se gestiona el desplazamiento de `revert` a `feat`. Se considera terminado cuando la interfaz indica visiblemente que se han agotado las opciones disponibles.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript
Área
cli
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.