Classification.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 public sealed record Classification( 8 CommandKind Kind, 9 string Input, 10 string Target, 11 string Arguments, 12 LaunchMethod Launch, 13 string? WorkingDirectory, 14 bool IsPlaceholder, 15 string? FileSystemTarget = null, 16 string? DisplayName = null) 17 { 18 public static Classification Unknown(string rawInput) => 19 new(CommandKind.Unknown, rawInput, rawInput, string.Empty, LaunchMethod.ShellExecute, string.Empty, false, null, null); 20 }