Skip to content

Commit 4d980e4

Browse files
AndreaV-Lsiclaude
andcommitted
docs: Add Invoke-RepoHerd usage to README
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a74f031 commit 4d980e4

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,14 @@ RepoHerd resolves recursive dependencies across repository trees, supports both
166166
Install-Module -Name RepoHerd
167167
```
168168

169+
Then run from any directory containing a `dependencies.json`:
170+
171+
```powershell
172+
Invoke-RepoHerd
173+
Invoke-RepoHerd -InputFile "path/to/deps.json"
174+
Invoke-RepoHerd -DryRun
175+
```
176+
169177
### Manual download
170178

171179
1. Download `RepoHerd.ps1`, `RepoHerd.psm1`, and `RepoHerd.psd1` to the same directory
@@ -186,16 +194,16 @@ In non-recursive mode, the script processes only the repositories listed in your
186194
### Command Line Usage
187195

188196
```powershell
189-
# Use default settings (recursive mode and intelligent tag sorting enabled by default)
190-
.\RepoHerd.ps1
197+
# If installed from PowerShell Gallery, use Invoke-RepoHerd:
198+
Invoke-RepoHerd
199+
Invoke-RepoHerd -InputFile "C:\configs\myrepos.json" -CredentialsFile "C:\configs\my_credentials.json"
200+
Invoke-RepoHerd -EnableDebug
201+
Invoke-RepoHerd -DryRun
191202
192-
# Specify custom JSON files
203+
# If using the script directly:
204+
.\RepoHerd.ps1
193205
.\RepoHerd.ps1 -InputFile "C:\configs\myrepos.json" -CredentialsFile "C:\configs\my_credentials.json"
194-
195-
# Enable debug logging
196206
.\RepoHerd.ps1 -EnableDebug
197-
198-
# Dry run mode (preview without changes)
199207
.\RepoHerd.ps1 -DryRun
200208
201209
# Verbose output

0 commit comments

Comments
 (0)