open-index/open-npm huggingface dataset:
npm package: @newset/yoo-cli
Description: Developer workflow CLI tool with tmux management, project templates, and more
Author: newset
Latest version: 1.0.5

# yoo-cli

A powerful developer workflow CLI tool with tmux management, git integration, and more.

## Features

- 🚀 **Tmux Management** - Manage multiple directories with tmux panes
- 📦 **Git Integration** - Clone repositories and create worktrees
- 🎯 **Project Templates** - Generate project scaffolds
- 🔨 **Build Management** - Unified build and deployment interface
- ⚙️ **Environment Management** - Manage environment configurations
- 📊 **Log Aggregation** - View logs from multiple projects

## Installation

```bash
npm install -g @newset/yoo-cli
```

Or use directly:

```bash
npx @newset/yoo-cli
```

## Usage

### Tmux Management

Open multiple directories in tmux with a single command:

```bash
yoo tmux
```

Features:
- Select existing folders in the current directory
- Create new folders
- Clone git repositories
- Automatically create git worktrees
- Open all directories in tmux panes

**In tmux:**
- If already in a tmux session, panes will be split in the current window
- Panes alternate between horizontal and vertical splits

**Outside tmux:**
- Creates a new tmux session with all directories
- Automatically attaches to the session

## Project Structure

```
dev-tools/
├── src/
│   ├── commands/          # CLI commands
│   │   ├── tmux.ts       # Tmux management
│   │   ├── template.ts   # Project templates
│   │   ├── build.ts      # Build management
│   │   ├── env.ts        # Environment management
│   │   └── log.ts        # Log aggregation
│   ├── lib/              # Libraries
│   │   ├── tmux/         # Tmux operations
│   │   ├── git/          # Git operations
│   │   ├── template/     # Template engine
│   │   └── logger.ts     # Logging
│   └── index.ts          # Entry point
├── dist/                 # Compiled output
├── package.json
├── tsconfig.json
└── README.md
```

## Development

### Build

```bash
npm run build
```

### Development mode

```bash
npm run dev
```

### Run

```bash
npm start
```

## Environment Variables

- `DEBUG` - Enable debug logging

```bash
DEBUG=1 yoo tmux
```

## License

MIT