Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factor out CLI command-related functionality into a command class #70

Open
nicholasjng opened this issue Aug 30, 2024 · 0 comments
Open
Assignees
Labels
client Related to the client component.

Comments

@nicholasjng
Copy link
Collaborator

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.

@nicholasjng nicholasjng added the client Related to the client component. label Aug 30, 2024
@nicholasjng nicholasjng self-assigned this Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Related to the client component.
Projects
None yet
Development

No branches or pull requests

1 participant