pandora-kit 0.4.2

Interactive TUI toolkit for the Hefesto framework
# pan spin — Spinner

Shows an animated spinner with a message while a command runs.

> **⚠️ Nota:** Los comandos interactivos (que piden password, confirmación, etc.) **no funcionan** con `pan spin`. El comando se ejecuta con pipes cerrados y no puede leer del terminal. Usa `sudo -A` o herramientas diseñadas para prompts.

## Usage

```
pan spin [OPTIONS] [-- <COMMAND>...]
```

## Options

| Flag                     | Default              | Description                           |
|--------------------------|----------------------|---------------------------------------|
| `-t`, `--title`          | `"Procesando..."`    | Main message displayed                |
| `-c`, `--cmd`            |                      | Command to run (string)               |
| `-l`, `--logs`           |                      | Show command output on completion     |
| `-v`, `--verbose`        |                      | Show real-time output in popup        |
| `-w`, `--wait`           |                      | Wait for Enter before closing         |
| `-a`, `--animation`      | `"dots"`             | Animation: dots, line, dots2, bounce, pulse, arrows, square, clock |
| `-W`, `--width`          | `0` (auto)           | Popup width                           |
| `-H`, `--height`         | `0` (auto)           | Popup height                          |
| `--guide`                |                      | Show this guide                       |

## Exit codes

| Code | Meaning                     |
|------|-----------------------------|
| 0    | Command succeeded           |
| 1    | Command failed / cancelled  |

## Examples

```bash
# Show spinner with a message
pan spin -t "Cargando..."

# Run a command with -c
pan spin -t "Instalando" -c "npm install"

# Multi-word command with --
pan spin -t "Compilando" -- cargo build --release

# Verbose mode with real-time output
pan spin -t "Descargando" -v -- curl -O https://example.com/file

# Wait for confirmation after completion
pan spin -t "Actualizando" -w -c "apt upgrade -y"

# Custom animation
pan spin -t "Cargando" -a bounce
```

## Keys

| Key              | Action                           |
|------------------|----------------------------------|
| `Esc` / `q`      | Exit (only when idle)            |
| `Up` / `k`       | Scroll output up (verbose mode)  |
| `Down` / `j`     | Scroll output down (verbose mode)|
| `gg`             | Go to first output line          |
| `G`              | Go to last output line           |
| `Ctrl` + `c`     | Emergency exit (always)          |