bash-parser icon indicating copy to clipboard operation
bash-parser copied to clipboard

Add CLI support

Open lukehorvat opened this issue 6 years ago • 1 comments

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.

lukehorvat avatar Jul 31 '18 18:07 lukehorvat

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

thetayloredman avatar Mar 13 '21 01:03 thetayloredman