Skip to content

Commit ec488e0

Browse files
Add aliases for most cmdlets
1 parent e0445d5 commit ec488e0

File tree

6 files changed

+7
-3
lines changed

6 files changed

+7
-3
lines changed

module/ClassExplorer.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ CmdletsToExport = 'Find-Member', 'Find-Type', 'Get-Assembly', 'Get-Parameter', '
5454
VariablesToExport = @()
5555

5656
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
57-
AliasesToExport = @()
57+
AliasesToExport = @('fit', 'fime', 'gasm', 'gpa')
5858

5959
# List of all files packaged with this module
6060
# FileList = @()
@@ -78,7 +78,7 @@ PrivateData = @{
7878

7979
# ReleaseNotes of this module
8080
ReleaseNotes = @'
81-
- Added type signatures, a custom query language built into type expressions. See https://bit.ly/about-type-signatures
81+
- Added type signatures, a custom query language built into type expressions. See https://seemingly.dev/about-type-signatures
8282
- A lot of fixes and tweaks
8383
- Removed Find-Namespace command
8484
'@

module/ClassExplorer.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ if (-not $PSVersionTable.PSEdition -or $PSVersionTable.PSEdition -eq 'Desktop')
77
Update-FormatData -PrependPath $PSScriptRoot\ClassExplorer.format.ps1xml
88
Update-TypeData -PrependPath $PSScriptRoot\ClassExplorer.types.ps1xml -ErrorAction Ignore
99

10-
Export-ModuleMember -Cmdlet Find-Type, Find-Member, Format-MemberSignature, Get-Assembly, Get-Parameter
10+
Export-ModuleMember -Cmdlet Find-Type, Find-Member, Format-MemberSignature, Get-Assembly, Get-Parameter -Alias *

src/ClassExplorer/Commands/FindMemberCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace ClassExplorer.Commands
1515
typeof(EventInfo),
1616
typeof(FieldInfo),
1717
typeof(Type))]
18+
[Alias("fime")]
1819
[Cmdlet(VerbsCommon.Find, "Member", DefaultParameterSetName = "ByFilter")]
1920
public class FindMemberCommand : FindReflectionObjectCommandBase<MemberInfo>
2021
{

src/ClassExplorer/Commands/FindTypeCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace ClassExplorer.Commands
1010
/// The FindType cmdlet searches the AppDomain for matching types.
1111
/// </summary>
1212
[OutputType(typeof(Type))]
13+
[Alias("fit")]
1314
[Cmdlet(VerbsCommon.Find, "Type", DefaultParameterSetName = "ByFilter")]
1415
public class FindTypeCommand : FindReflectionObjectCommandBase<Type>
1516
{

src/ClassExplorer/Commands/GetAssemblyCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace ClassExplorer.Commands
99
/// The Get-Assembly cmdlet gets the assemblies currently loaded in the AppDomain.
1010
/// </summary>
1111
[OutputType(typeof(Assembly))]
12+
[Alias("gasm")]
1213
[Cmdlet(VerbsCommon.Get, "Assembly")]
1314
public sealed class GetAssemblyCommand : PSCmdlet
1415
{

src/ClassExplorer/Commands/GetParameterCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ namespace ClassExplorer.Commands
77
/// The Get-Parameter cmdlet get parameters from methods.
88
/// </summary>
99
[OutputType(typeof(ParameterInfo))]
10+
[Alias("gpa")]
1011
[Cmdlet(VerbsCommon.Get, "Parameter")]
1112
public class GetParameterCommand : Cmdlet
1213
{

0 commit comments

Comments
 (0)