Skip to content

Commit 6675816

Browse files
Update README with improved PowerShell examples
Added clarifying comments to the style enforcement example and refactored the Hugo website creation example to use a hashtable for parameters, improving readability and demonstrating best practices.
1 parent 85624c1 commit 6675816

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ Get-ChildItem ./public/*.ps1 |
132132
### 🎨 Style Enforcement
133133

134134
```powershell
135+
# This is an ineffective prompt, shown only for demo purposes
136+
# It's much better to give step by step what OTBS is
135137
Get-ChildItem *.ps1 -Recurse |
136138
Invoke-AITool -Prompt "Apply OTBS formatting"
137139
```
@@ -140,9 +142,13 @@ Get-ChildItem *.ps1 -Recurse |
140142

141143
```powershell
142144
# Create a Hugo website with colors extracted from an image
143-
Invoke-AITool -Tool Codex `
144-
-Prompt "Create a new markdown-driven Hugo website that uses the color scheme of the image attachment" `
145-
-Attachment ".\design-inspiration.png"
145+
$params = @{
146+
Tool = 'Codex'
147+
Prompt = 'Create a new markdown-driven Hugo website that uses the color scheme of the image attachment'
148+
Attachment = '.\design-inspiration.png'
149+
}
150+
151+
Invoke-AITool @params
146152
```
147153

148154
> **Note:** The `-Attachment` parameter only works with **Codex** and supports image files (`.png`, `.jpg`, `.jpeg`, `.gif`, `.bmp`, `.webp`, `.svg`).

0 commit comments

Comments
 (0)