Import-TCGdexModuleSettings

SYNOPSIS

Imports the TCGdex BaseURI, language, & JSON configuration information to the current session

SYNTAX

Set (Default)

Import-TCGdexModuleSettings [[-TCGdexConfigPath] <string>] [[-TCGdexConfigFile] <string>]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Import-TCGdexModuleSettings cmdlet imports the TCGdex BaseURI, language, & JSON configuration information stored in the TCGdex configuration file to the users current session

When no configuration file exists the default base URI (https://api.tcgdex.net/v2) & language (en) are used, the TCGdex API does not need an API key so the module works right after it is imported

By default the configuration file is stored in the following location: $env:USERPROFILE\Celerium.TCGdex

The TCGDEX_BASE_URI & TCGDEX_LANGUAGE environment variables are also supported and take precedence over the values stored in the configuration file

EXAMPLES

EXAMPLE 1

Import-TCGdexModuleSettings

Validates that the configuration file created with the Export-TCGdexModuleSettings cmdlet exists then imports the stored data into the current users session

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

EXAMPLE 2

Import-TCGdexModuleSettings -TCGdexConfigPath C:\Celerium.TCGdex -TCGdexConfigFile MyConfig.psd1

Validates that the configuration file created with the Export-TCGdexModuleSettings cmdlet exists then imports the stored data into the current users session

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

PARAMETERS

-TCGdexConfigFile

Define the name of the TCGdex configuration file

By default the configuration file is named: config.psd1

Type: System.String
DefaultValue: config.psd1
SupportsWildcards: false
Aliases:
- ConfigFile
- TCGdexConfFile
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-TCGdexConfigPath

Define the location to store the TCGdex configuration file

By default the configuration file is stored in the following location: $env:USERPROFILE\Celerium.TCGdex

Type: System.String
DefaultValue: $(Join-Path -Path $home -ChildPath $(if ($IsWindows -or $PSEdition -eq 'Desktop') {"Celerium.TCGdex"}else{".Celerium.TCGdex"}) )
SupportsWildcards: false
Aliases:
- ConfigPath
- TCGdexConfPath
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

N/A