Import-GitHubModuleSettings
SYNOPSIS
Imports saved module settings & token
SYNTAX
__AllParameterSets
Import-GitHubModuleSettings [[-GitHubConfigPath] <string>] [[-GitHubConfigFile] <string>]
ALIASES
This cmdlet has the following aliases,
- Get-GHImportModuleSettings
DESCRIPTION
The Import-GitHubModuleSettings function reads a settings file created by Export-GitHubModuleSettings & applies it to the current session (base uri, upload uri, API version, retry, timeout & JSON settings, token)
The default settings file is also imported automatically when the module loads. No network calls are made
A saved token can only be decrypted by the same user on the same machine (Windows DPAPI)
EXAMPLES
EXAMPLE 1
Import-GitHubModuleSettings
Imports ~/Celerium.GitHub/config.psd1
EXAMPLE 2
Import-GitHubModuleSettings -GitHubConfigPath 'C:\Temp\GitHub' -GitHubConfigFile 'MyConfig.psd1'
Imports C:\Temp\GitHub\MyConfig.psd1
PARAMETERS
-GitHubConfigFile
Name of the settings file
Defaults to config.psd1
Type: System.String
DefaultValue: config.psd1
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-GitHubConfigPath
Folder of the settings file
Defaults to Celerium.GitHub in the user profile folder
Type: System.String
DefaultValue: (Join-Path -Path ([System.Environment]::GetFolderPath('UserProfile')) -ChildPath 'Celerium.GitHub')
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
Aliases: Get-GHImportModuleSettings