Constants.cs (3431B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="Constants.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace Microsoft.WinGet.Client.Common 8 { 9 /// <summary> 10 /// This class contains all of the configurable constants for this project. 11 /// </summary> 12 internal static class Constants 13 { 14 /// <summary> 15 /// If a command allows the specification of the maximum number of results to return, this is the lower bound for that value. 16 /// </summary> 17 public const uint CountLowerBound = 1; 18 19 /// <summary> 20 /// If a command allows the specification of the maximum number of results to return, this is the upper bound for that value. 21 /// </summary> 22 public const uint CountUpperBound = 1000; 23 24 /// <summary> 25 /// This parameter set indicates that a package was provided via a parameter or the pipeline and it can be acted on directly. 26 /// </summary> 27 public const string GivenSet = "GivenSet"; 28 29 /// <summary> 30 /// This parameter set indicates that a package was not provided via a parameter or the pipeline and it 31 /// needs to be found by searching a package source. 32 /// </summary> 33 public const string FoundSet = "FoundSet"; 34 35 /// <summary> 36 /// This parameter set indicates the default parameters associated with a cmdlet. 37 /// </summary> 38 public const string DefaultSet = "DefaultSet"; 39 40 /// <summary> 41 /// This parameter set indicates the optional parameters associated with a cmdlet. 42 /// </summary> 43 public const string OptionalSet = "OptionalSet"; 44 45 /// <summary> 46 /// Parameter set for an specific version parameter. 47 /// </summary> 48 public const string IntegrityVersionSet = "IntegrityVersionSet"; 49 50 /// <summary> 51 /// Parameter set for an latest version with optional prerelease version. 52 /// </summary> 53 public const string IntegrityLatestSet = "IntegrityLatestSet"; 54 55 /// <summary> 56 /// Nouns used for different cmdlets. Changing this will alter the names of the related commands. 57 /// </summary> 58 public static class WinGetNouns 59 { 60 /// <summary> 61 /// WinGet. 62 /// </summary> 63 public const string WinGetPackageManager = "WinGetPackageManager"; 64 65 /// <summary> 66 /// WinGetPackage. 67 /// </summary> 68 public const string Package = "WinGetPackage"; 69 70 /// <summary> 71 /// WinGetSource. 72 /// </summary> 73 public const string Source = "WinGetSource"; 74 75 /// <summary> 76 /// The noun for any user settings cmdlet. 77 /// </summary> 78 public const string UserSetting = "WinGetUserSetting"; 79 80 /// <summary> 81 /// The noun for winget version. 82 /// </summary> 83 public const string Version = "WinGetVersion"; 84 85 /// <summary> 86 /// The noun for enable/disable winget admin settings. 87 /// </summary> 88 public const string Setting = "WinGetSetting"; 89 } 90 } 91 }