converting configurations file to individual files per configuration

This commit is contained in:
Baipyrus 2024-09-24 14:42:07 +02:00
parent aa3dd46c57
commit 03063a7582
4 changed files with 104 additions and 104 deletions

View File

@ -1,104 +0,0 @@
[
{
"name": "env",
"cmd": "[System.Environment]::SetEnvironmentVariable('$PRSW_ARG', $PRSW_ARG, 'User')",
"set": [
{
"args": [
"http_proxy"
],
"surround": "\"",
"type": "variable"
}, {
"args": [
"https_proxy"
],
"surround": "\"",
"type": "variable"
}
],
"unset": [
{
"args": [
"http_proxy",
"[NullString]::Value"
],
"type": "variable"
}, {
"args": [
"https_proxy",
"[NullString]::Value"
],
"type": "variable"
}
]
}, {
"name": "git",
"set": [
{
"args": [
"config",
"--global",
"http.proxy"
]
}, {
"args": [
"config",
"--global",
"https.proxy"
]
}
],
"unset": [
{
"args": [
"config",
"--global",
"--unset",
"http.proxy"
]
}, {
"args": [
"config",
"--global",
"--unset",
"https.proxy"
]
}
]
}, {
"name": "npm",
"set": [
{
"args": [
"config",
"set",
"proxy"
],
"equator": "="
}, {
"args": [
"config",
"set",
"https-proxy"
],
"equator": "="
}
],
"unset": [
{
"args": [
"config",
"delete",
"proxy"
]
}, {
"args": [
"config",
"delete",
"https-proxy"
]
}
]
}
]

34
configs/env.json Normal file
View File

@ -0,0 +1,34 @@
{
"name": "env",
"cmd": "[System.Environment]::SetEnvironmentVariable('$PRSW_ARG', $PRSW_ARG, 'User')",
"set": [
{
"args": [
"http_proxy"
],
"surround": "\"",
"type": "variable"
}, {
"args": [
"https_proxy"
],
"surround": "\"",
"type": "variable"
}
],
"unset": [
{
"args": [
"http_proxy",
"[NullString]::Value"
],
"type": "variable"
}, {
"args": [
"https_proxy",
"[NullString]::Value"
],
"type": "variable"
}
]
}

35
configs/git.json Normal file
View File

@ -0,0 +1,35 @@
{
"name": "git",
"set": [
{
"args": [
"config",
"--global",
"http.proxy"
]
}, {
"args": [
"config",
"--global",
"https.proxy"
]
}
],
"unset": [
{
"args": [
"config",
"--global",
"--unset",
"http.proxy"
]
}, {
"args": [
"config",
"--global",
"--unset",
"https.proxy"
]
}
]
}

35
configs/npm.json Normal file
View File

@ -0,0 +1,35 @@
{
"name": "npm",
"set": [
{
"args": [
"config",
"set",
"proxy"
],
"equator": "="
}, {
"args": [
"config",
"set",
"https-proxy"
],
"equator": "="
}
],
"unset": [
{
"args": [
"config",
"delete",
"proxy"
]
}, {
"args": [
"config",
"delete",
"https-proxy"
]
}
]
}