Get-PokeAPIModuleSettings

SYNOPSIS

Gets the saved PokeAPI configuration settings

SYNTAX

Index (Default)

Get-PokeAPIModuleSettings [-PokeAPIConfigPath <string>] [-PokeAPIConfigFile <string>]

Show

Get-PokeAPIModuleSettings -OpenConfigFile [-PokeAPIConfigPath <string>]
 [-PokeAPIConfigFile <string>]

ALIASES

This cmdlet has the following aliases,

  • Get-PokeModuleSettings

DESCRIPTION

The Get-PokeAPIModuleSettings cmdlet gets the saved PokeAPI configuration settings from the local system.

By default the configuration file is stored in the following location: $env:USERPROFILE\PokeAPI

EXAMPLES

EXAMPLE 1

Get-PokeAPIModuleSettings

Gets the contents of the configuration file that was created with the Export-PokeAPIModuleSettings

The default location of the PokeAPI configuration file is: $env:USERPROFILE\PokeAPI\config.psd1

EXAMPLE 2

Get-PokeAPIModuleSettings -PokeAPIConfigPath C:\PokeAPI -PokeAPIConfigFile MyConfig.psd1 -OpenConfigFile

Opens the configuration file from the defined location in the default editor

The location of the PokeAPI configuration file in this example is: C:\PokeAPI\MyConfig.psd1

PARAMETERS

-OpenConfigFile

Opens the PokeAPI configuration file

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases:
- OpenConfFile
ParameterSets:
- Name: Show
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-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: Show
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Index
  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: Show
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: Index
  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 Get-PokeModuleSettings alias is kept for older scripts.