Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sanda0/xrun

Run multiple project commands effortlessly in a single terminal session. Simplify your workflow with runit!
https://github.com/sanda0/xrun

automation cli-tool developer-tools golang open-source project-management utility

Last synced: 2 days ago
JSON representation

Run multiple project commands effortlessly in a single terminal session. Simplify your workflow with runit!

Awesome Lists containing this project

README

        

# ✨ xrun ✨

A utility tool to streamline running multiple project commands effortlessly in a single terminal session! Perfect for managing development environments with ease.

---

## ⚑ Features

- 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.

---

## πŸ”§ Installation (Linux)

### πŸ”„ Download

```bash
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
```

### πŸ”§ Install

```bash
sudo chmod +x xrun && sudo mv xrun /usr/bin/xrun
```

---

## πŸš€ How to Use

### πŸ” Step 1: Go to Your Project Folder

```bash
cd //project
```

### πŸ”„ Step 2: Initialize Configuration

Run the init command to generate the configuration file:

```bash
xrun --init
```

You will see a file named `config.xrun.json` in your project directory. Open it to edit the configuration.

### πŸ—„ Step 3: Edit Configuration File

Here’s an example of how your `config.xrun.json` might look:

```json
{
"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": "."
}
]
}
```

### πŸ”€ Step 4: Run Commands

While in your project directory, simply run:

```bash
xrun
```

### πŸ‘‡ Output Example

```bash
β–„ β–„ β–„β–„β–„ β–ˆ β–β–Œβ–„β–„β–„β–„
β–€β–„β–€ β–ˆ β–€β–„β–„β–žβ–˜β–ˆ β–ˆ
β–„β–€ β–€β–„ β–ˆ β–ˆ β–ˆ

Configured Commands:
Laravel -> php artisan serve
Vue -> npm run dev
Open VsCode -> code .
========================
Running command: Open VsCode
Running command: Vue
Running command: Laravel

```

---

## πŸŽ‰ Enjoy Productivity Boost!

With `xrun`, managing your development environment has never been easier! Happy coding! πŸš€

---

## πŸ›  Feedback and Contributions

Feel free to open issues or submit pull requests. Let’s make `xrun` better together! ✨