Skip to content

Commit c0c3543

Browse files
author
Friedrich Weinmann
committed
Implementing awesome tab expansion
1 parent 6fac846 commit c0c3543

9 files changed

Lines changed: 831 additions & 116 deletions

File tree

PSFramework/bin/PSFramework.dll

512 Bytes
Binary file not shown.

PSFramework/bin/PSFramework.pdb

4 KB
Binary file not shown.

PSFramework/bin/PSFramework.xml

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PSFramework/internal/scripts/postimport.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ foreach ($file in (Get-ChildItem -Path "$($script:ModuleRoot)\internal\parameter
4848
# Register the unimport reaction
4949
. Import-ModuleFile -Path "$($script:ModuleRoot)\internal\scripts\removalEvent.ps1"
5050

51-
# Load specialvariables
51+
# Load special variables
5252
. Import-ModuleFile -Path "$($script:ModuleRoot)\internal\scripts\variables.ps1"
5353

54+
# Load resources for TEPP input completion
55+
. Import-ModuleFile -Path "$($script:ModuleRoot)\internal\scripts\teppInputResources.ps1"
56+
5457
# Finally register the license
5558
. Import-ModuleFile -Path "$($script:ModuleRoot)\internal\scripts\license.ps1"
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
[PSFramework.TabExpansion.TabExpansionHost]::InputCompletionTypeData['System.IO.FileInfo'] = @(
2+
[PSCustomObject]@{
3+
Name = 'PSChildName'
4+
Type = ([type]'System.String')
5+
TypeKnown = $true
6+
},
7+
[PSCustomObject]@{
8+
Name = 'PSDrive'
9+
Type = ([type]'System.Management.Automation.PSDriveInfo')
10+
TypeKnown = $true
11+
},
12+
[PSCustomObject]@{
13+
Name = 'PSIsContainer'
14+
Type = ([type]'System.Boolean')
15+
TypeKnown = $true
16+
},
17+
[PSCustomObject]@{
18+
Name = 'PSParentPath'
19+
Type = ([type]'System.String')
20+
TypeKnown = $true
21+
},
22+
[PSCustomObject]@{
23+
Name = 'PSPath'
24+
Type = ([type]'System.String')
25+
TypeKnown = $true
26+
},
27+
[PSCustomObject]@{
28+
Name = 'PSProvider'
29+
Type = ([type]'System.Management.Automation.ProviderInfo')
30+
TypeKnown = $true
31+
},
32+
[PSCustomObject]@{
33+
Name = 'BaseName'
34+
Type = ([type]'System.String')
35+
TypeKnown = $true
36+
},
37+
[PSCustomObject]@{
38+
Name = 'VersionInfo'
39+
Type = ([type]'System.Diagnostics.FileVersionInfo')
40+
TypeKnown = $true
41+
}
42+
)
43+
44+
[PSFramework.TabExpansion.TabExpansionHost]::InputCompletionTypeData['System.IO.DirectoryInfo'] = @(
45+
[PSCustomObject]@{
46+
Name = 'PSChildName'
47+
Type = ([type]'System.String')
48+
TypeKnown = $true
49+
},
50+
[PSCustomObject]@{
51+
Name = 'PSDrive'
52+
Type = ([type]'System.Management.Automation.PSDriveInfo')
53+
TypeKnown = $true
54+
},
55+
[PSCustomObject]@{
56+
Name = 'PSIsContainer'
57+
Type = ([type]'System.Boolean')
58+
TypeKnown = $true
59+
},
60+
[PSCustomObject]@{
61+
Name = 'PSParentPath'
62+
Type = ([type]'System.String')
63+
TypeKnown = $true
64+
},
65+
[PSCustomObject]@{
66+
Name = 'PSPath'
67+
Type = ([type]'System.String')
68+
TypeKnown = $true
69+
},
70+
[PSCustomObject]@{
71+
Name = 'PSProvider'
72+
Type = ([type]'System.Management.Automation.ProviderInfo')
73+
TypeKnown = $true
74+
},
75+
[PSCustomObject]@{
76+
Name = 'BaseName'
77+
Type = ([type]'System.String')
78+
TypeKnown = $true
79+
}
80+
)

0 commit comments

Comments
 (0)