Skip to content

Commit

Permalink
Renaming to a standard name, PSReddit
Browse files Browse the repository at this point in the history
  • Loading branch information
1RedOne committed Sep 16, 2015
1 parent 339e150 commit c6d7b3c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 83 deletions.
6 changes: 3 additions & 3 deletions PowerReddit.format.ps1xml → PSReddit.format.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<View>
<Name>PowerReddit.Link</Name>
<ViewSelectedBy>
<TypeName>PowerReddit.Link</TypeName>
<TypeName>PSReddit.Link</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand Down Expand Up @@ -47,9 +47,9 @@
</View>

<View>
<Name>PowerReddit.Comment</Name>
<Name>PSReddit.Comment</Name>
<ViewSelectedBy>
<TypeName>PowerReddit.Comment</TypeName>
<TypeName>PSReddit.Comment</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
Expand Down
File renamed without changes.
7 changes: 4 additions & 3 deletions PowerReddit.psd1 → PSReddit.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@{

# Script module or binary module file associated with this manifest
RootModule = 'PowerReddit.psm1'
RootModule = 'PSReddit.psm1'

# Version number of this module.
ModuleVersion = '1.0'
Expand All @@ -15,6 +15,7 @@ GUID = '3dede632-fde4-4cc6-85df-9f5cfd6cd124'

# Author of this module
Author = 'Tobin Jones'
Author = 'Stephen Owen'

# Copyright statement for this module
Copyright = 'Licensed under the MIT license'
Expand Down Expand Up @@ -50,10 +51,10 @@ PowerShellVersion = '3.0'
# ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
TypesToProcess = @('PowerReddit.ps1xml')
TypesToProcess = @('PSReddit.ps1xml')

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = @('PowerReddit.format.ps1xml')
FormatsToProcess = @('PSReddit.format.ps1xml')

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()
Expand Down
24 changes: 24 additions & 0 deletions PSReddit.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#Get public and private function definition files.
$PublicFunction = @( Get-ChildItem -Path $PSScriptRoot\Public\*.ps1 -Exclude *tests* -ErrorAction SilentlyContinue )
$PrivateFunction = @( Get-ChildItem -Path $PSScriptRoot\Private\*.ps1 -Exclude *tests* -ErrorAction SilentlyContinue )

#Dot source the files
Foreach($import in @($PublicFunction + $PrivateFunction))
{
"importing $import"
Try
{
. $import.fullname
}
Catch
{
Write-Error -Message "Failed to import function $($import.fullname): $_"
}
}

# Here I might...
# Read in or create an initial config file and variable
# Export Public functions ($Public.BaseName) for WIP modules
# Set variables visible to the module and its functions only

Export-ModuleMember -Function $PublicFunction.Basename
77 changes: 0 additions & 77 deletions PowerReddit.psm1

This file was deleted.

0 comments on commit c6d7b3c

Please sign in to comment.