CommandKind.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 namespace Microsoft.CmdPal.Ext.Bookmarks.Helpers; 6 7 /// <summary> 8 /// Classifies a command or bookmark target type. 9 /// </summary> 10 public enum CommandKind 11 { 12 /// <summary> 13 /// Unknown or unsupported target. 14 /// </summary> 15 Unknown = 0, 16 17 /// <summary> 18 /// HTTP/HTTPS URL. 19 /// </summary> 20 WebUrl, 21 22 /// <summary> 23 /// Any non-file URI scheme (e.g., mailto:, ms-settings:, wt:, myapp:). 24 /// </summary> 25 Protocol, 26 27 /// <summary> 28 /// Application User Model ID (e.g., shell:AppsFolder\AUMID or pkgfamily!app). 29 /// </summary> 30 Aumid, 31 32 /// <summary> 33 /// Existing folder path. 34 /// </summary> 35 Directory, 36 37 /// <summary> 38 /// Existing executable file (e.g., .exe, .bat, .cmd). 39 /// </summary> 40 FileExecutable, 41 42 /// <summary> 43 /// Existing document file. 44 /// </summary> 45 FileDocument, 46 47 /// <summary> 48 /// Windows shortcut file (*.lnk). 49 /// </summary> 50 Shortcut, 51 52 /// <summary> 53 /// Internet shortcut file (*.url). 54 /// </summary> 55 InternetShortcut, 56 57 /// <summary> 58 /// Bare command resolved via PATH/PATHEXT (e.g., "wt", "git"). 59 /// </summary> 60 PathCommand, 61 62 /// <summary> 63 /// Shell item not matching other types (e.g., Control Panel item, purely virtual directory). 64 /// </summary> 65 VirtualShellItem, 66 }