Files
PowerToys/src/modules/cmdpal/ext/SamplePagesExtension/SamplePagesCommandsProvider.cs
2025-08-08 05:57:58 -05:00

31 lines
820 B
C#

// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CommandPalette.Extensions;
using Microsoft.CommandPalette.Extensions.Toolkit;
namespace SamplePagesExtension;
public partial class SamplePagesCommandsProvider : CommandProvider
{
public SamplePagesCommandsProvider()
{
DisplayName = "Sample Pages Commands";
Icon = new IconInfo("\uE82D");
}
private readonly ICommandItem[] _commands = [
new CommandItem(new SamplesListPage())
{
Title = "Sample Pages",
Subtitle = "View example commands",
},
];
public override ICommandItem[] TopLevelCommands()
{
return _commands;
}
}