github / github/codeql

[CLI] Expose shell completions for `codeql` command

Abierto
#20,493 3 comentarios 0 reacciones 0 asignados Ver en GitHub
question
Lenguaje dominante
CodeQL
Estrellas
10.1k
Forks
2.1k
Merge medio
2 d 15 h
PR fusionados (30 d)
141

Descripción

`codeql` doesn't support auto-completion which would be quite nice when working with it.

I would imagine a command like `codeql generate-completions` which can then be used as `source <(codeql generate-completions)`.

It shouldn't be too hard to implement this, because as far as I know, picocli is used for CLI parsing and it shouldn't take more than a few lines of code to implement this as the hard work has already been done by picocli:
https://picocli.info/autocomplete.html#_distribution
(All you have to do is add `@Command(name = "codeql", subcommands = GenerateCompletion.class)` it seems)

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start by locating the codeql CLI command registration and its picocli setup, then read picocli's autocomplete distribution guidance. Add the requested generate-completions command so its output can be sourced by a shell, and verify that completion generation works for the codeql command and its subcommands.

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

Evaluación

Stack tecnológico
java
Á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
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.