Skip to content

Commit c5846f4

Browse files
committed
Move the template installer to the go binary
1 parent 2437801 commit c5846f4

File tree

5 files changed

+347
-510
lines changed

5 files changed

+347
-510
lines changed

docs/cli-reference.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,11 @@ peachy --help # Show help
8383
## Template Commands
8484

8585
```bash
86-
peachy templates list # List installed templates
87-
peachy templates validate # Check templates for errors
88-
peachy templates apply # Apply templates manually
89-
peachy templates init # Create templates directory
86+
peachy templates available # List templates available for installation
87+
peachy templates install kitty neovim # Install specific templates
88+
peachy templates install --all # Install all available templates
89+
peachy templates list # List installed templates
90+
peachy templates validate # Check templates for errors
91+
peachy templates apply --theme mytheme # Apply templates with a theme
92+
peachy templates init # Create templates directory
9093
```

docs/custom-templates.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,14 @@ This way, Linux-specific templates won't cause errors on macOS and vice versa.
153153
## CLI Commands
154154

155155
```bash
156-
# List all custom templates and their status
156+
# List available templates from the repository
157+
peachy templates available
158+
159+
# Install templates from the repository
160+
peachy templates install kitty alacritty neovim
161+
peachy templates install --all
162+
163+
# List installed custom templates and their status
157164
peachy templates list
158165

159166
# Validate templates (check for errors)
@@ -169,18 +176,23 @@ peachy templates apply --dry-run
169176
peachy templates init
170177
```
171178

172-
## Installing Examples
179+
## Installing Templates
173180

174-
Copy example templates from the Peachy repository:
181+
Install pre-made templates directly from the Peachy repository:
175182

176183
```bash
177-
# Copy all examples
178-
cp -r /path/to/peachy/examples/templates/* ~/.config/peachy/templates/
184+
# See what templates are available
185+
peachy templates available
179186

180-
# Or copy specific ones
181-
cp -r /path/to/peachy/examples/templates/kitty ~/.config/peachy/templates/
187+
# Install specific templates
188+
peachy templates install kitty alacritty neovim
189+
190+
# Install all available templates for your platform
191+
peachy templates install --all
182192
```
183193

194+
Templates are automatically filtered by platform - Linux-only templates (like Hyprland, Waybar) won't appear on macOS, and macOS-only templates (like iTerm2) won't appear on Linux.
195+
184196
## Next Steps
185197

186198
- [Template Variables](template-variables.md) - All available color variables and modifiers

0 commit comments

Comments
 (0)