Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
arcadeyou would get a printout of basic installation/system info. This printout has now been moved to theinfocommand(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
initcommand 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.