/ src / modules / cmdpal / ext / Microsoft.CmdPal.Ext.PowerToys / Modules / FileLocksmithModuleCommandProvider.cs
FileLocksmithModuleCommandProvider.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  using System.Collections.Generic;
 6  using Microsoft.CommandPalette.Extensions.Toolkit;
 7  using PowerToysExtension.Commands;
 8  using PowerToysExtension.Helpers;
 9  using PowerToysExtension.Properties;
10  using static Common.UI.SettingsDeepLink;
11  
12  namespace PowerToysExtension.Modules;
13  
14  internal sealed class FileLocksmithModuleCommandProvider : ModuleCommandProvider
15  {
16      public override IEnumerable<ListItem> BuildCommands()
17      {
18          var title = SettingsWindow.FileLocksmith.ModuleDisplayName();
19          var icon = SettingsWindow.FileLocksmith.ModuleIcon();
20  
21          yield return new ListItem(new OpenInSettingsCommand(SettingsWindow.FileLocksmith, title))
22          {
23              Title = title,
24              Subtitle = Resources.FileLocksmith_Settings_Subtitle,
25              Icon = icon,
26          };
27      }
28  }