Import-PokeAPIModuleSettings
SYNOPSIS
Imports the PokeAPI BaseURI information to the current session.
SYNTAX
Set (Default)
Import-PokeAPIModuleSettings [-PokeAPIConfigPath <string>] [-PokeAPIConfigFile <string>]
ALIASES
This cmdlet has the following aliases,
- Import-PokeModuleSettings
DESCRIPTION
The Import-PokeAPIModuleSettings cmdlet imports the PokeAPI BaseURI stored in the PokeAPI configuration file to the users current session.
If no configuration file exists then the default PokeAPI BaseURI is used.
By default the configuration file is stored in the following location: $env:USERPROFILE\PokeAPI
EXAMPLES
EXAMPLE 1
Import-PokeAPIModuleSettings
Validates that the configuration file created with the Export-PokeAPIModuleSettings cmdlet exists then imports the stored data into the current users session.
The default location of the PokeAPI configuration file is: $env:USERPROFILE\PokeAPI\config.psd1
EXAMPLE 2
Import-PokeAPIModuleSettings -PokeAPIConfigPath C:\PokeAPI -PokeAPIConfigFile MyConfig.psd1
Validates that the configuration file created with the Export-PokeAPIModuleSettings cmdlet exists then imports the stored data into the current users session.
The location of the PokeAPI configuration file in this example is: C:\PokeAPI\MyConfig.psd1
PARAMETERS
-PokeAPIConfigFile
Define the name of the PokeAPI configuration file.
By default the configuration file is named: config.psd1
Type: System.String
DefaultValue: config.psd1
SupportsWildcards: false
Aliases:
- PokeConfFile
ParameterSets:
- Name: Set
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PokeAPIConfigPath
Define the location of the PokeAPI configuration file.
By default the configuration file is stored in the following location: $env:USERPROFILE\PokeAPI
Type: System.String
DefaultValue: $(Join-Path -Path $HOME -ChildPath $(if ($IsWindows -or $PSEdition -eq 'Desktop'){'PokeAPI'}else{'.PokeAPI'}) )
SupportsWildcards: false
Aliases:
- PokeConfPath
ParameterSets:
- Name: Set
Position: Named
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
The Import-PokeModuleSettings alias is kept for older scripts.