Skip to content

Commit

Permalink
Make this more of a real module.
Browse files Browse the repository at this point in the history
  • Loading branch information
lzybkr committed Jul 14, 2013
1 parent d8d9295 commit 2d5b7ce
Show file tree
Hide file tree
Showing 7 changed files with 784 additions and 2 deletions.
2 changes: 2 additions & 0 deletions PSReadLine/Cmdlets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace PSConsoleUtilities
{
#if NEVER
public class PSConsoleUtilitiesInit : IModuleAssemblyInitializer
{
[ExcludeFromCodeCoverage]
Expand All @@ -19,6 +20,7 @@ public void OnImport()
ps.Invoke();
}
}
#endif

[Cmdlet("Set", "PSReadlineOption")]
public class SetPSReadlineOption : PSCmdlet
Expand Down
3 changes: 2 additions & 1 deletion PSReadLine/PSReadLine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PSReadLine</RootNamespace>
<AssemblyName>PSReadLine</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
41 changes: 41 additions & 0 deletions PSReadLine/PSReadLine.format.ps1xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" ?>

<Configuration>
<ViewDefinitions>
<View>
<Name>PSConsoleUtilities.KeyHandler</Name>
<ViewSelectedBy>
<TypeName>PSConsoleUtilities.KeyHandler</TypeName>
</ViewSelectedBy>

<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>Key</Label>
<Width>20</Width>
</TableColumnHeader>
<TableColumnHeader>
<Label>BriefDescription</Label>
<Width>22</Width>
</TableColumnHeader>
<TableColumnHeader/>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>Key</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>BriefDescription</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>LongDescription</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
</ViewDefinitions>
</Configuration>
Binary file added PSReadLine/PSReadLine.psd1
Binary file not shown.
11 changes: 11 additions & 0 deletions PSReadLine/PSReadLine.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

#
# .SYNOPSIS
#
# This function is called by the console host when reading input to execute commands.
#
function PSConsoleHostReadline
{
[PSConsoleUtilities.PSConsoleReadLine]::ReadLine()
}

2 changes: 1 addition & 1 deletion PSReadLine/PSReadLineResources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2d5b7ce

Please sign in to comment.