winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Edit-WinGetClientSetting.ps1 (906B)


      1 Function Edit-WinGetClientSetting
      2 {
      3     <#
      4         .SYNOPSIS
      5         Opens the Windows Package Manager settings.json file in the default editor. 
      6         
      7         .DESCRIPTION
      8         By running this cmdlet will open the Windows Package Manager settings.json in the application configured for editing JSON files.
      9 
     10         .PARAMETER VerboseLog
     11         Used to provide verbose logging for the Windows Package Manager.
     12 
     13         .EXAMPLE
     14         Edit-WinGetClientSetting
     15 
     16         The settings.json file for the Windows Package Manager will be opened in the default .json editor
     17     #>
     18 
     19     
     20     PARAM (
     21         [Parameter()] [switch] $VerboseLog
     22     )
     23     BEGIN
     24     {
     25         [string[]] $WinGetArgs  = "Settings"
     26         $WinGetArgs += "--Verbose-Logs", $VerboseLog
     27     }
     28     PROCESS{
     29         & "WinGet" $WingetArgs
     30     }
     31     END{
     32         return
     33     }
     34 }
     35 
     36 Export-ModuleMember -Function Edit-WinGetClientSetting