Bash scripts. Create and run in WebStorm

Image for post
Image for post

We could ask user something like this:

Image for post
Image for post
ENV_PATH=.env.dev adonis migration:status
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Now let’s discuss what is happening

Lines 5 and 6

env_param=$1
command_param=$2
Image for post
Image for post

Line 8

Image for post
Image for post

Line 19

Line 49

ENV_PATH=.env.dev adonis migration:status
Image for post
Image for post

Constants file

Java, Spring, Node.js, AdonisJs, React.js and Flutter developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store