Skip to content

Commit a522530

Browse files
aa
authored andcommitted
Update migrate-prompt.md
1 parent 9588a2a commit a522530

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

scripts/migrate-prompt.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If the next PENDING command has unmet dependencies, skip to the next one that's
4141

4242
### 2. Read the PS1 Source
4343

44-
Read the original PS1 file from `c:\github\dbatools\public\{CommandName}.ps1`.
44+
Read the original PS1 file from `c:\github\dbatools-ralph\public\{CommandName}.ps1`.
4545

4646
**Extract EVERYTHING:**
4747
- Every parameter: name, type, mandatory, position, pipeline binding, default, validation, aliases, parameter sets
@@ -218,9 +218,9 @@ performance (no allocations in loops, proper StringBuilder usage), thread safety
218218
state access, and adherence to C# 7.3 constraints."
219219
```
220220

221-
**If existing Pester tests exist** for this command (check `c:\github\dbatools\tests\{CommandName}.Tests.ps1`), use `subagent_type="pester-test-guardian"`:
221+
**If existing Pester tests exist** for this command (check `c:\github\dbatools-ralph\tests\{CommandName}.Tests.ps1`), use `subagent_type="pester-test-guardian"`:
222222
```
223-
Task prompt: "Evaluate the Pester tests at c:\github\dbatools\tests\{CommandName}.Tests.ps1
223+
Task prompt: "Evaluate the Pester tests at c:\github\dbatools-ralph\tests\{CommandName}.Tests.ps1
224224
for compatibility with the new C# binary cmdlet at {cs_path}. Identify any tests that
225225
will break due to the conversion (changed output types, removed properties, different
226226
error behavior). Report which tests need adaptation and suggest fixes."
@@ -230,20 +230,20 @@ Fix any issues reported by these specialized reviewers before proceeding to Step
230230

231231
### 10. Retire the PS1 Function
232232

233-
The C# cmdlet replaces the PS1 function. Both cannot coexist — PowerShell will error on duplicate command names. Perform these steps in the **dbatools repo** (`c:\github\dbatools`):
233+
The C# cmdlet replaces the PS1 function. Both cannot coexist — PowerShell will error on duplicate command names. Perform these steps in the **dbatools repo** (`c:\github\dbatools-ralph`):
234234

235235
#### 10a. Archive the PS1 file
236236

237237
Move the PS1 to an `archive/` folder (gitignored — for reference only, the original is in git history):
238238

239239
```bash
240-
mkdir -p c:/github/dbatools/archive
241-
mv c:/github/dbatools/public/{CommandName}.ps1 c:/github/dbatools/archive/{CommandName}.ps1
240+
mkdir -p c:/github/dbatools-ralph/archive
241+
mv c:/github/dbatools-ralph/public/{CommandName}.ps1 c:/github/dbatools-ralph/archive/{CommandName}.ps1
242242
```
243243

244244
#### 10b. Remove from dbatools FunctionsToExport
245245

246-
Edit `c:\github\dbatools\dbatools.psd1` — remove `'{CommandName}'` from the `FunctionsToExport` array.
246+
Edit `c:\github\dbatools-ralph\dbatools.psd1` — remove `'{CommandName}'` from the `FunctionsToExport` array.
247247

248248
#### 10c. Add to dbatools.library CmdletsToExport
249249

@@ -286,7 +286,7 @@ EOF
286286

287287
4. Commit in **dbatools** repo:
288288
```bash
289-
cd c:/github/dbatools
289+
cd c:/github/dbatools-ralph
290290
git add -u public/{CommandName}.ps1
291291
git add dbatools.psd1
292292
git commit -m "$(cat <<'EOF'

0 commit comments

Comments
 (0)