Export-TCGdexModuleSettings

SYNOPSIS

Exports the TCGdex BaseURI, language, & JSON configuration information to file

SYNTAX

Set (Default)

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

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Export-TCGdexModuleSettings cmdlet exports the TCGdex BaseURI, language, & JSON configuration information to file

The TCGdex API does not use an API key, so no secrets are stored in the file

EXAMPLES

EXAMPLE 1

Export-TCGdexModuleSettings

Validates that the BaseURI, language, and JSON depth are set then exports their values to the current user’s TCGdex configuration file located at: $env:USERPROFILE\Celerium.TCGdex\config.psd1

EXAMPLE 2

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

Validates that the BaseURI, language, and JSON depth are set then exports their values to the current user’s TCGdex configuration file located at: 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