Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add module config data as json file #42

Open
voytas75 opened this issue Dec 18, 2023 · 0 comments
Open

Add module config data as json file #42

voytas75 opened this issue Dec 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@voytas75
Copy link
Owner

voytas75 commented Dec 18, 2023

Read and save data:

$configPath = 'C:\Path\To\config.json'
$config = Get-Content -Path $configPath | ConvertFrom-Json

# Modify the configuration
$config.Key1 = 'NewValue'
$config.Key2 = 99

# Save the changes
$config | ConvertTo-Json | Set-Content -Path $configPath

File should be in user doc log and data module folder + config

@voytas75 voytas75 changed the title Add store config data as json file Add module config data as json file Dec 19, 2023
@voytas75 voytas75 added the enhancement New feature or request label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant