diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..23fb7e3 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,7 @@ +Copyright (c) 2015 Erwin de Vreugd and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/.gitattributes b/PSTruPortal/.gitattributes similarity index 100% rename from .gitattributes rename to PSTruPortal/.gitattributes diff --git a/PSTruPortal.psd1 b/PSTruPortal/PSTruPortal.psd1 similarity index 100% rename from PSTruPortal.psd1 rename to PSTruPortal/PSTruPortal.psd1 diff --git a/PSTruPortal.psm1 b/PSTruPortal/PSTruPortal.psm1 similarity index 100% rename from PSTruPortal.psm1 rename to PSTruPortal/PSTruPortal.psm1 diff --git a/Private/Enumerations.ps1 b/PSTruPortal/Private/Enumerations.ps1 similarity index 100% rename from Private/Enumerations.ps1 rename to PSTruPortal/Private/Enumerations.ps1 diff --git a/Private/Functions.ps1 b/PSTruPortal/Private/Functions.ps1 similarity index 100% rename from Private/Functions.ps1 rename to PSTruPortal/Private/Functions.ps1 diff --git a/Private/ScriptContext.ps1 b/PSTruPortal/Private/ScriptContext.ps1 similarity index 100% rename from Private/ScriptContext.ps1 rename to PSTruPortal/Private/ScriptContext.ps1 diff --git a/Public/Get-AccessLevel.ps1 b/PSTruPortal/Public/Get-AccessLevel.ps1 similarity index 100% rename from Public/Get-AccessLevel.ps1 rename to PSTruPortal/Public/Get-AccessLevel.ps1 diff --git a/Public/Get-ActionTrigger.ps1 b/PSTruPortal/Public/Get-ActionTrigger.ps1 similarity index 100% rename from Public/Get-ActionTrigger.ps1 rename to PSTruPortal/Public/Get-ActionTrigger.ps1 diff --git a/Public/Get-Credential.ps1 b/PSTruPortal/Public/Get-Credential.ps1 similarity index 100% rename from Public/Get-Credential.ps1 rename to PSTruPortal/Public/Get-Credential.ps1 diff --git a/Public/Get-Device.ps1 b/PSTruPortal/Public/Get-Device.ps1 similarity index 100% rename from Public/Get-Device.ps1 rename to PSTruPortal/Public/Get-Device.ps1 diff --git a/Public/Get-Door.ps1 b/PSTruPortal/Public/Get-Door.ps1 similarity index 100% rename from Public/Get-Door.ps1 rename to PSTruPortal/Public/Get-Door.ps1 diff --git a/Public/Get-Event.ps1 b/PSTruPortal/Public/Get-Event.ps1 similarity index 100% rename from Public/Get-Event.ps1 rename to PSTruPortal/Public/Get-Event.ps1 diff --git a/Public/Get-Input.ps1 b/PSTruPortal/Public/Get-Input.ps1 similarity index 100% rename from Public/Get-Input.ps1 rename to PSTruPortal/Public/Get-Input.ps1 diff --git a/Public/Get-Output.ps1 b/PSTruPortal/Public/Get-Output.ps1 similarity index 100% rename from Public/Get-Output.ps1 rename to PSTruPortal/Public/Get-Output.ps1 diff --git a/Public/Get-Person.ps1 b/PSTruPortal/Public/Get-Person.ps1 similarity index 100% rename from Public/Get-Person.ps1 rename to PSTruPortal/Public/Get-Person.ps1 diff --git a/Public/Get-Reader.ps1 b/PSTruPortal/Public/Get-Reader.ps1 similarity index 100% rename from Public/Get-Reader.ps1 rename to PSTruPortal/Public/Get-Reader.ps1 diff --git a/Public/Get-SessionKeyFromScriptContext.ps1 b/PSTruPortal/Public/Get-SessionKeyFromScriptContext.ps1 similarity index 100% rename from Public/Get-SessionKeyFromScriptContext.ps1 rename to PSTruPortal/Public/Get-SessionKeyFromScriptContext.ps1 diff --git a/Public/Get-UserDefinedField.ps1 b/PSTruPortal/Public/Get-UserDefinedField.ps1 similarity index 100% rename from Public/Get-UserDefinedField.ps1 rename to PSTruPortal/Public/Get-UserDefinedField.ps1 diff --git a/Public/Invoke-ActivateActionTrigger.ps1 b/PSTruPortal/Public/Invoke-ActivateActionTrigger.ps1 similarity index 100% rename from Public/Invoke-ActivateActionTrigger.ps1 rename to PSTruPortal/Public/Invoke-ActivateActionTrigger.ps1 diff --git a/Public/Invoke-ActivateOutput.ps1 b/PSTruPortal/Public/Invoke-ActivateOutput.ps1 similarity index 100% rename from Public/Invoke-ActivateOutput.ps1 rename to PSTruPortal/Public/Invoke-ActivateOutput.ps1 diff --git a/Public/Invoke-DeactivateActionTrigger.ps1 b/PSTruPortal/Public/Invoke-DeactivateActionTrigger.ps1 similarity index 100% rename from Public/Invoke-DeactivateActionTrigger.ps1 rename to PSTruPortal/Public/Invoke-DeactivateActionTrigger.ps1 diff --git a/Public/Invoke-DeactivateOutput.ps1 b/PSTruPortal/Public/Invoke-DeactivateOutput.ps1 similarity index 100% rename from Public/Invoke-DeactivateOutput.ps1 rename to PSTruPortal/Public/Invoke-DeactivateOutput.ps1 diff --git a/Public/Invoke-GrantAccess.ps1 b/PSTruPortal/Public/Invoke-GrantAccess.ps1 similarity index 100% rename from Public/Invoke-GrantAccess.ps1 rename to PSTruPortal/Public/Invoke-GrantAccess.ps1 diff --git a/Public/Invoke-LoginUser.ps1 b/PSTruPortal/Public/Invoke-LoginUser.ps1 similarity index 100% rename from Public/Invoke-LoginUser.ps1 rename to PSTruPortal/Public/Invoke-LoginUser.ps1 diff --git a/Public/Invoke-LogoutUser.ps1 b/PSTruPortal/Public/Invoke-LogoutUser.ps1 similarity index 100% rename from Public/Invoke-LogoutUser.ps1 rename to PSTruPortal/Public/Invoke-LogoutUser.ps1 diff --git a/Public/Set-ScriptContext.ps1 b/PSTruPortal/Public/Set-ScriptContext.ps1 similarity index 100% rename from Public/Set-ScriptContext.ps1 rename to PSTruPortal/Public/Set-ScriptContext.ps1 diff --git a/README.md b/README.md new file mode 100644 index 0000000..6d906f7 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# PSTruPortal + +[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/erwindevreugd) + +A PowerShell module for the Interlogix TruPortal API. + +## Cmdlet Name Collision + +To avoid name collision between the cmdlet in this module and other cmdlets you can import this module with a prefix. + +```powershell +Import-Module -Name PSTruPortal -Prefix TP +``` + +## Donation + +[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/erwindevreugd) \ No newline at end of file diff --git a/start.cmd b/start.cmd new file mode 100644 index 0000000..1b64543 --- /dev/null +++ b/start.cmd @@ -0,0 +1,3 @@ +@echo off + +start %windir%\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit -ExecutionPolicy Bypass -Command "& Import-Module '%~dp0PSTruPortal\PSTruPortal.psm1'" \ No newline at end of file