Skip to content

Comments

New CLI Infrastructure#2828

Open
Cleptomania wants to merge 3 commits intodevelopmentfrom
new-cli
Open

New CLI Infrastructure#2828
Cleptomania wants to merge 3 commits intodevelopmentfrom
new-cli

Conversation

@Cleptomania
Copy link
Member

This adds some new infrastructure to give us the ability to create a more robust CLI for Arcade.

Previously all we really had was that if you ran arcade you would get a printout of basic installation/system info. This printout has now been moved to the info command(and has also been updated to work properly with the abstracted context class so each backend can provide it's own info).

Broadly this gives us the ability to add new commands to a CLI that ships with Arcade. One potential idea is an init command which would bootstrap a skeleton Arcade project for you, which could take the place of a potential cookiecutter repo or similar(or work alongside it). The need for some kind of structured project bootstrap is increased with supporting web browsers, so this is one way we can help make that easier.

Note this PR doesn't actually add any new commands, it just puts in place some basic infrastructure to facilitate it. Given that this is intended for end-users and not Arcade contributors, I didn't want to add any extra dependencies to support this, so this is a barebones CLI implemented with argparse, as opposed to using something like click, typer, or rich.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant