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

Add CLI support #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add CLI support #57

wants to merge 1 commit into from

Conversation

lukehorvat
Copy link

Hey, cool module. 🙂 It would be nice if you could run it via the CLI.

This PR adds some basic CLI support, so you can run bash-parser like so:

bash-parser 'echo ciao' # if the package is installed globally
npx bash-parser 'echo ciao' # if the package is installed locally 

Outputs the AST as JSON.

@thetayloredman
Copy link

I'd suggest adding file support with --file <path>!

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.

2 participants