A utility tool to streamline running multiple project commands effortlessly in a single terminal session! Perfect for managing development environments with ease.
- Define and manage multiple commands in a single JSON configuration file.
- Execute commands simultaneously with ease.
- Works with any project—Laravel, Vue, Node.js, etc.
curl -s https://api.github.com/repos/sanda0/xrun/releases/latest \
| grep "browser_download_url" \
| grep "xrun-linux-amd64" \
| cut -d '"' -f 4 \
| xargs curl -L -o xrun
sudo chmod +x xrun && sudo mv xrun /usr/bin/xrun
cd /<path_to_your_project>/project
Run the init command to generate the configuration file:
xrun --init
You will see a file named config.xrun.json
in your project directory. Open it to edit the configuration.
Here’s an example of how your config.xrun.json
might look:
{
"Commands": [
{
"Label": "Laravel",
"Color": "red",
"CmdStr": "php artisan serve",
"ExecPath": "."
},
{
"Label": "Vue",
"Color": "green",
"CmdStr": "npm run dev",
"ExecPath": "."
},
{
"Label": "Open VsCode",
"Color": "blue",
"CmdStr": "code .",
"ExecPath": "."
}
]
}
While in your project directory, simply run:
xrun
▄ ▄ ▄▄▄ █ ▐▌▄▄▄▄
▀▄▀ █ ▀▄▄▞▘█ █
▄▀ ▀▄ █ █ █
Configured Commands:
Laravel -> php artisan serve
Vue -> npm run dev
Open VsCode -> code .
========================
Running command: Open VsCode
Running command: Vue
Running command: Laravel
With xrun
, managing your development environment has never been easier! Happy coding! 🚀
Feel free to open issues or submit pull requests. Let’s make xrun
better together! ✨