CLI dispatch duplicates the command table and exposes a test hook

Abierto
#166 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
cli

Línea de trabajo

Start with cli.run, the COMMANDS table, and the top-level parser; trace how dispatch, help, and the root-query compatibility path are handled. Then inspect the catalogs and datasets registry options and the guide. Done means one table drives dispatch and the guide, root-query compatibility warns with a stated removal version, and test-only registry options are hidden from help or replaced by an environment variable.

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

Descripción

enhancement
  • cli.run dispatches with a hand-written if argv[0] == ... chain that repeats the COMMANDS table, and repeats (prog or "orfdata") after prog is already set. A new command must be added in both places. The top-level parser is built only to print help.
  • Any argument list starting with - falls through to the query parser for compatibility with orfdata --gene .... orfdata --verbose therefore reports an error from orfdata query. A deprecation timeline would let this go.
  • catalogs --registry and datasets --registry load arbitrary registry JSON. They exist for tests, but appear in user help.

Acceptance: one table drives dispatch and the guide. The root-query compatibility path warns, with a stated removal version. The test-only registry options are hidden from help or replaced with an environment variable.

Lenguaje dominante
Python
Estrellas
1
Forks
1
Merge medio
10 h 11 min
PR fusionados (30 d)
51

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openvax/orfdata

Todos los issues de openvax/orfdata

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.