aai-institute / aai-institute/jobq

Factor out CLI command-related functionality into a command class

Aperta
#70 0 commenti 0 reazioni 1 assegnatario Rivendicata da @nicholasjng Vedi su GitHub
client
Lingua principale
Python
Stelle
4
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

As per title. There is precedent for this in several widely used CLI libraries like `pip` (which has the `CLICommand` class).

What I am thinking of is mostly things like contextual organization around commands, a `Command.run(args: argparse.Namespace)` method, and perhaps some validation of an argparse namespace received by the command.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.