CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 11:18:18 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/PowerShellForGitHub.git
etag: W/"659803087303376d41751bf0c9a6e766"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=f0KFZu1%2FjjzCyEfTq5GiZ%2BlWCCoclFQ99q26CY44gDL2%2Fuei%2FhdD0JDMsiFlnRQGyUxleSLIk26Oo55jW0Tf2YXzZ4nICzN4S%2Byvb4o7TouKpj4s3YyRhUBbPzCEpvIEplQGhCa%2BTNQnv9WDeoGyLHn%2BEk%2FJ90fVT9s0QpSvrOBIrAR3cPwu82bTtQc3u0bBBWNmWtf%2BGPUhUxKwR2sawLCYNvWqD1DBgCi5Mrn9BtD7idvu%2B58RIm0fzUs1TISWFw6ISXS2%2FvP6ssY4kOVBNw%3D%3D--Cntugp4loNJMb19p--90PTRwQagw9v7tzT89BAyg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.311332399.1753355897; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 11:18:17 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 11:18:17 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E7D2:36131:19C7AFC:1EAB0AA:68821679
BREAKING CHANGE: Add confirmation prompts and examples for Remove- fu… · microsoft/PowerShellForGitHub@a6a27aa · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 190
Commit a6a27aa
authored
BREAKING CHANGE: Add confirmation prompts and examples for Remove- functions (#174)
Updates all Remove-* functions to set `ConfirmImpact='High'`, wraps the execution in `$PSCmdlet.ShouldProcess()`, and adds examples which show how to call the functions with `-Confirm:$false` to avoid the confirmation prompt.
## Breaking Change
This will be considered a breaking change for anyone using this module in an automated, scripted basis and calling any Remove-* methods. They will need to add `-Confirm:$false` to those API calls, similar to what was done for the unit tests.
Fixes #1711 parent 21e6139 commit a6a27aaCopy full SHA for a6a27aa
File tree
Expand file treeCollapse file tree
19 files changed
+178
-129
lines changedFilter options
- Tests
Expand file treeCollapse file tree
19 files changed
+178
-129
lines changed+22-14Lines changed: 22 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
328 | 328 |
| |
329 | 329 |
| |
330 | 330 |
| |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
331 | 336 |
| |
332 | 337 |
| |
333 | 338 |
| |
334 |
| - | |
335 |
| - | |
| 339 | + | |
| 340 | + | |
336 | 341 |
| |
337 | 342 |
| |
338 | 343 |
| |
| |||
374 | 379 |
| |
375 | 380 |
| |
376 | 381 |
| |
377 |
| - | |
378 |
| - | |
379 |
| - | |
380 |
| - | |
381 |
| - | |
382 |
| - | |
383 |
| - | |
384 |
| - | |
385 |
| - | |
386 |
| - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
387 | 397 |
| |
388 |
| - | |
389 |
| - | |
390 | 398 |
|
+20-12Lines changed: 20 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
452 | 452 |
| |
453 | 453 |
| |
454 | 454 |
| |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
455 | 460 |
| |
456 | 461 |
| |
457 | 462 |
| |
458 |
| - | |
| 463 | + | |
| 464 | + | |
459 | 465 |
| |
460 |
| - | |
461 | 466 |
| |
462 | 467 |
| |
463 | 468 |
| |
| |||
491 | 496 |
| |
492 | 497 |
| |
493 | 498 |
| |
494 |
| - | |
495 |
| - | |
496 |
| - | |
497 |
| - | |
498 |
| - | |
499 |
| - | |
500 |
| - | |
501 |
| - | |
502 |
| - | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
503 | 510 |
| |
504 |
| - | |
| 511 | + | |
| 512 | + | |
505 | 513 |
| |
506 | 514 |
|
+43-27Lines changed: 43 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
316 | 316 |
| |
317 | 317 |
| |
318 | 318 |
| |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
319 | 324 |
| |
320 | 325 |
| |
321 | 326 |
| |
322 |
| - | |
323 |
| - | |
| 327 | + | |
| 328 | + | |
324 | 329 |
| |
325 | 330 |
| |
326 | 331 |
| |
| |||
356 | 361 |
| |
357 | 362 |
| |
358 | 363 |
| |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
369 | 376 |
| |
370 |
| - | |
| 377 | + | |
| 378 | + | |
371 | 379 |
| |
372 | 380 |
| |
373 | 381 |
| |
| |||
614 | 622 |
| |
615 | 623 |
| |
616 | 624 |
| |
617 |
| - | |
| 625 | + | |
618 | 626 |
| |
619 | 627 |
| |
620 | 628 |
| |
| |||
865 | 873 |
| |
866 | 874 |
| |
867 | 875 |
| |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
868 | 881 |
| |
869 | 882 |
| |
870 | 883 |
| |
871 |
| - | |
872 |
| - | |
| 884 | + | |
| 885 | + | |
873 | 886 |
| |
874 | 887 |
| |
875 | 888 |
| |
| |||
915 | 928 |
| |
916 | 929 |
| |
917 | 930 |
| |
918 |
| - | |
919 |
| - | |
920 |
| - | |
921 |
| - | |
922 |
| - | |
923 |
| - | |
924 |
| - | |
925 |
| - | |
926 |
| - | |
927 |
| - | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
928 | 943 |
| |
929 |
| - | |
| 944 | + | |
| 945 | + | |
930 | 946 |
| |
931 | 947 |
| |
932 | 948 |
| |
|
+20-12Lines changed: 20 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
500 | 500 |
| |
501 | 501 |
| |
502 | 502 |
| |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
503 | 508 |
| |
504 | 509 |
| |
505 | 510 |
| |
506 |
| - | |
| 511 | + | |
| 512 | + | |
507 | 513 |
| |
508 |
| - | |
509 | 514 |
| |
510 | 515 |
| |
511 | 516 |
| |
| |||
538 | 543 |
| |
539 | 544 |
| |
540 | 545 |
| |
541 |
| - | |
542 |
| - | |
543 |
| - | |
544 |
| - | |
545 |
| - | |
546 |
| - | |
547 |
| - | |
548 |
| - | |
549 |
| - | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
550 | 557 |
| |
551 |
| - | |
| 558 | + | |
| 559 | + | |
552 | 560 |
|
-1Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
370 | 370 |
| |
371 | 371 |
| |
372 | 372 |
| |
373 |
| - | |
374 | 373 |
| |
375 | 374 |
| |
376 | 375 |
| |
|
-1Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
266 | 266 |
| |
267 | 267 |
| |
268 | 268 |
| |
269 |
| - | |
270 | 269 |
| |
271 | 270 |
| |
272 | 271 |
| |
|
+5-1Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
465 | 465 |
| |
466 | 466 |
| |
467 | 467 |
| |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
468 | 473 |
| |
469 | 474 |
| |
470 | 475 |
| |
| |||
476 | 481 |
| |
477 | 482 |
| |
478 | 483 |
| |
479 |
| - | |
480 | 484 |
| |
481 | 485 |
| |
482 | 486 |
| |
|
+19-12Lines changed: 19 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
220 | 225 |
| |
221 | 226 |
| |
222 | 227 |
| |
223 |
| - | |
| 228 | + | |
| 229 | + | |
224 | 230 |
| |
225 |
| - | |
226 | 231 |
| |
227 | 232 |
| |
228 | 233 |
| |
| |||
250 | 255 |
| |
251 | 256 |
| |
252 | 257 |
| |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
253 | 269 |
| |
254 |
| - | |
255 |
| - | |
256 |
| - | |
257 |
| - | |
258 |
| - | |
259 |
| - | |
260 |
| - | |
261 |
| - | |
| 270 | + | |
262 | 271 |
| |
263 |
| - | |
264 |
| - | |
265 | 272 |
| |
266 | 273 |
| |
267 | 274 |
| |
|
You can’t perform that action at this time.
0 commit comments