fix: Change YargsCliExtractor structure to avoid Components.js issues

This commit is contained in:
Joachim Van Herwegen
2022-04-21 10:54:06 +02:00
parent 1de1f7c12a
commit 6f4e70dbb9
6 changed files with 148 additions and 96 deletions

View File

@@ -42,20 +42,28 @@
{
"@id": "urn:solid-server-app-setup:default:CliExtractor",
"@type": "YargsCliExtractor",
"extendedParameters": {
"httpsKey": {
"demandOption": true,
"requiresArg": true,
"type": "string",
"describe": "File path to the HTTPS key."
"parameters": [
{
"@type": "YargsParameter",
"name": "httpsKey",
"options": {
"demandOption": true,
"requiresArg": true,
"type": "string",
"describe": "File path to the HTTPS key."
}
},
"httpsCert": {
"demandOption": true,
"requiresArg": true,
"type": "string",
"describe": "File path to the HTTPS certificate."
{
"@type": "YargsParameter",
"name": "httpsCert",
"options": {
"demandOption": true,
"requiresArg": true,
"type": "string",
"describe": "File path to the HTTPS certificate."
}
}
}
]
},
{
"comment": "Adds resolvers to assign the CLI values to the Components.js variables.",