mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-14 21:59:20 +00:00
Based on standard practices, we need to have a copyright and license notice at the top of each source file. Removed existing copyrights and updated/added copyright notices for .h, .cpp, .cs, .ps1, and .psm1 files. Updated module manifests for consistency to have Author = "PowerShell" and Company = "Microsoft Corporation". Removed multiple line breaks. Separate PR coming to update contribution document for new source files: #6140 Manually reviewed each change. Fix #6073
71 lines
1.7 KiB
C#
71 lines
1.7 KiB
C#
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace System.Management.Automation
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// Class DefaultHelpProvider implement the help provider for commands.
|
|
///
|
|
/// Command Help information are stored in 'help.xml' files. Location of these files
|
|
/// can be found from CommandDiscovery.
|
|
///
|
|
/// </summary>
|
|
internal class DefaultHelpProvider : HelpFileHelpProvider
|
|
{
|
|
/// <summary>
|
|
/// Constructor for HelpProvider
|
|
/// </summary>
|
|
internal DefaultHelpProvider(HelpSystem helpSystem)
|
|
: base(helpSystem)
|
|
{
|
|
}
|
|
|
|
#region Common Properties
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <value></value>
|
|
internal override string Name
|
|
{
|
|
get
|
|
{
|
|
return "Default Help Provider";
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <value></value>
|
|
internal override HelpCategory HelpCategory
|
|
{
|
|
get
|
|
{
|
|
return HelpCategory.DefaultHelp;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Help Provider Interface
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="helpRequest">help request object</param>
|
|
/// <returns></returns>
|
|
internal override IEnumerable<HelpInfo> ExactMatchHelp(HelpRequest helpRequest)
|
|
{
|
|
HelpRequest defaultHelpRequest = helpRequest.Clone();
|
|
defaultHelpRequest.Target = "default";
|
|
return base.ExactMatchHelp(defaultHelpRequest);
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|