-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from snazy2000/develop
First 1.2 version
- Loading branch information
Showing
97 changed files
with
1,888 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Function Get-SnipeItAlias(){ | ||
@{'Get-Asset' = 'Get-SnipeItAsset'; | ||
'Get-AssetMaintenance' = 'Get-SnipeItAssetMaintenance'; | ||
'Get-Category' = 'Get-SnipeItCategory'; | ||
'Get-Company' = 'Get-SnipeItCompany'; | ||
'Get-Component' = 'Get-SnipeItCompany'; | ||
'Get-CustomField' = 'Get-SnipeItCustomField'; | ||
'Get-Department' = 'Get-SnipeItDepartment'; | ||
'Get-Fieldset' = 'Get-SnipeItFieldset'; | ||
'Get-Manufacturer' = 'Get-SnipeItManufacturer'; | ||
'Get-Model' = 'Get-SnipeItModel'; | ||
'Get-Status' = 'Get-SnipeItStatus'; | ||
'Get-Supplier' = 'Get-SnipeItSupplier'; | ||
'Get-User' = 'Get-SnipeItUser'; | ||
'New-Asset' = 'New-SnipeItAsset'; | ||
'New-AssetMaintenance' = 'New-SnipeItAssetMaintenance'; | ||
'New-Category' = 'New-SnipeItCategory'; | ||
'New-Component' = 'New-SnipeItComponent'; | ||
'New-CustomField' = 'New-SnipeItCustomField'; | ||
'New-Department' = 'New-SnipeItDepartment'; | ||
'New-License' = 'New-SnipeItLicense'; | ||
'Set-License' = 'Set-SnipeItLicense'; | ||
'New-Location' = 'New-SnipeItLocation'; | ||
'New-Manufacturer' = 'New-SnipeItManufacturer'; | ||
'New-Model' = 'New-SnipeItModel'; | ||
'New-User' = 'New-SnipeItUser'; | ||
'Set-Asset' = 'Set-SnipeItAsset'; | ||
'Set-AssetOwner' = 'Set-SnipeItAssetOwner'; | ||
'Set-Component' = 'Set-SnipeItComponent'; | ||
'Set-Model' = 'Set-SnipeItModel'; | ||
'Set-Info' = 'Set-SnipeItInfo'; | ||
'Set-User' = 'Set-SnipeItUser'; | ||
'New-Accessory' = 'New-SnipeItAccessory'; | ||
'Set-Accessory' = 'Set-SnipeItAccessory'; | ||
'Get-Accessory' = 'Get-SnipeItAccessory'; | ||
'Remove-Asset' = 'Remove-SnipeItAsset'; | ||
'Remove-User' = 'Remove-SnipeItUser';} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function Set-SnipeItAlias() | ||
{ | ||
[CmdletBinding( | ||
SupportsShouldProcess = $true, | ||
ConfirmImpact = "Low" | ||
)] | ||
param() | ||
Write-Verbose "Setting compatibility aliases.. " | ||
Write-Verbose "All aliases are deprediated." | ||
$SnipeItAliases = get-SnipeItAlias | ||
ForEach ($key in $SnipeItAliases.Keys ) { | ||
New-Alias -Name $key -Value $($SnipeItAliases[$key]) -Scope 1 | ||
Write-Verbose ("{0,5} -> {1}" -f $key,$($SnipeItAliases[$key])) | ||
} | ||
Write-Verbose "Please start using native 'SnipeIt' prfixed functions instead." | ||
Get-Command -Module SnipeItPS -CommandType Alias | Select-Object -Property DisplayName,ResolvedCommand | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
function Test-SnipeItAlias() | ||
{ | ||
[CmdletBinding()] | ||
param( | ||
[parameter(mandatory = $true)] | ||
[string]$invocationName, | ||
[parameter(mandatory = $true)] | ||
[string]$commandName | ||
) | ||
if($invocationName -ne $commandName) { | ||
Write-Warning "$invocationName is still working, but it has been superceded by $commandName, please use it instead." | ||
Write-Warning 'To update your scripts you can use Update-SnipeItAlias helper function: ' | ||
Write-Warning '"Get-Content [your-script.ps1] | Update-SnipeItAlias | Out-File [new-script-name.ps1]"' | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.