mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-15 02:35:47 +00:00
new Connect-SnipeitPS command
This commit is contained in:
parent
4c0b9b0e85
commit
0afd33368b
2 changed files with 15 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ PowerShellVersion = '5.1'
|
||||||
|
|
||||||
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
|
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
|
||||||
FunctionsToExport = @(
|
FunctionsToExport = @(
|
||||||
|
'Connect-SnipeitPS',
|
||||||
'Get-SnipeitAccessory',
|
'Get-SnipeitAccessory',
|
||||||
'Get-SnipeitAccessoryOwner',
|
'Get-SnipeitAccessoryOwner',
|
||||||
'Get-SnipeitActivity',
|
'Get-SnipeitActivity',
|
||||||
|
|
|
||||||
|
|
@ -16,3 +16,17 @@ Get-ChildItem $scriptRoot *.ps1 | ForEach-Object {
|
||||||
|
|
||||||
#Create unprefixed aliases
|
#Create unprefixed aliases
|
||||||
Set-SnipeitAlias
|
Set-SnipeitAlias
|
||||||
|
|
||||||
|
#Session variable for storing current session information
|
||||||
|
$SnipeitPSSession = [ordered]@{
|
||||||
|
'url' = $null
|
||||||
|
'apiKey' = $null
|
||||||
|
}
|
||||||
|
New-Variable -Name SnipeitPSSession -Value $SnipeitPSSession -Scope Script -Force
|
||||||
|
|
||||||
|
#Config variable
|
||||||
|
$SnipeitPSConfig = [ordered]@{
|
||||||
|
'latest' = $null
|
||||||
|
'connections' = [ordered]@{}
|
||||||
|
}
|
||||||
|
New-Variable -Name SnipeitPSConfig -Value $SnipeitPSConfig -Scope Script -Force
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue