-
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 #144 from snazy2000/develop
Casesensitivity for file and function names
- Loading branch information
Showing
108 changed files
with
884 additions
and
879 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
File renamed without changes.
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
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 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
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
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.