BaseCommand.cs (1082B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="BaseCommand.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace Microsoft.WinGet.Client.Engine.Commands.Common 8 { 9 using System.Collections.Generic; 10 using System.Management.Automation; 11 using Microsoft.WinGet.Common.Command; 12 using Microsoft.WinGet.SharedLib.PolicySettings; 13 14 /// <summary> 15 /// Base class for all Cmdlets. 16 /// </summary> 17 public abstract class BaseCommand : PowerShellCmdlet 18 { 19 /// <summary> 20 /// Initializes a new instance of the <see cref="BaseCommand"/> class. 21 /// </summary> 22 /// <param name="psCmdlet">PSCmdlet.</param> 23 internal BaseCommand(PSCmdlet psCmdlet) 24 : base(psCmdlet, new HashSet<Policy> { Policy.WinGet, Policy.WinGetCommandLineInterfaces }) 25 { 26 } 27 } 28 }