mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Change YargsCliExtractor structure to avoid Components.js issues
This commit is contained in:
@@ -5,65 +5,105 @@
|
||||
"comment": "Extracts CLI arguments into a key/value object. Config and mainModulePath are only defined here so their description is returned.",
|
||||
"@id": "urn:solid-server-app-setup:default:CliExtractor",
|
||||
"@type": "YargsCliExtractor",
|
||||
"parameters": {
|
||||
"config": {
|
||||
"alias": "c",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "The configuration for the server. The default only stores data in memory; to persist to your filesystem, use @css:config/file.json."
|
||||
"parameters": [
|
||||
{
|
||||
"@type": "YargsParameter",
|
||||
"name": "config",
|
||||
"options": {
|
||||
"alias": "c",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "The configuration for the server. The default only stores data in memory; to persist to your filesystem, use @css:config/file.json."
|
||||
}
|
||||
},
|
||||
"mainModulePath": {
|
||||
"alias": "m",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "Path from where Components.js will start its lookup when initializing configurations."
|
||||
{
|
||||
"@type": "YargsParameter",
|
||||
"name": "mainModulePath",
|
||||
"options": {
|
||||
"alias": "m",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "Path from where Components.js will start its lookup when initializing configurations."
|
||||
}
|
||||
},
|
||||
"loggingLevel": {
|
||||
"alias": "l",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "The detail level of logging; useful for debugging problems."
|
||||
{
|
||||
"@type": "YargsParameter",
|
||||
"name": "loggingLevel",
|
||||
"options": {
|
||||
"alias": "l",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "The detail level of logging; useful for debugging problems."
|
||||
}
|
||||
},
|
||||
"baseUrl": {
|
||||
"alias": "b",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "The public URL of your server."
|
||||
{
|
||||
"@type": "YargsParameter",
|
||||
"name": "baseUrl",
|
||||
"options": {
|
||||
"alias": "b",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "The public URL of your server."
|
||||
}
|
||||
},
|
||||
"port": {
|
||||
"alias": "p",
|
||||
"requiresArg": true,
|
||||
"type": "number",
|
||||
"describe": "The TCP port on which the server runs."
|
||||
{
|
||||
"@type": "YargsParameter",
|
||||
"name": "port",
|
||||
"options": {
|
||||
"alias": "p",
|
||||
"requiresArg": true,
|
||||
"type": "number",
|
||||
"describe": "The TCP port on which the server runs."
|
||||
}
|
||||
},
|
||||
"rootFilePath": {
|
||||
"alias": "f",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "Root folder of the server, when using a file-based configuration."
|
||||
{
|
||||
"@type": "YargsParameter",
|
||||
"name": "rootFilePath",
|
||||
"options": {
|
||||
"alias": "f",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "Root folder of the server, when using a file-based configuration."
|
||||
}
|
||||
},
|
||||
"showStackTrace": {
|
||||
"alias": "t",
|
||||
"type": "boolean",
|
||||
"describe": "Enables detailed logging on error pages."
|
||||
{
|
||||
"@type": "YargsParameter",
|
||||
"name": "showStackTrace",
|
||||
"options": {
|
||||
"alias": "t",
|
||||
"type": "boolean",
|
||||
"describe": "Enables detailed logging on error pages."
|
||||
}
|
||||
},
|
||||
"sparqlEndpoint": {
|
||||
"alias": "s",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "URL of the SPARQL endpoint, when using a quadstore-based configuration."
|
||||
{
|
||||
"@type": "YargsParameter",
|
||||
"name": "sparqlEndpoint",
|
||||
"options": {
|
||||
"alias": "s",
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "URL of the SPARQL endpoint, when using a quadstore-based configuration."
|
||||
}
|
||||
},
|
||||
"podConfigJson": {
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "Path to the file that keeps track of dynamic Pod configurations."
|
||||
{
|
||||
"@type": "YargsParameter",
|
||||
"name": "podConfigJson",
|
||||
"options": {
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "Path to the file that keeps track of dynamic Pod configurations."
|
||||
}
|
||||
},
|
||||
"seededPodConfigJson": {
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "Path to the file that will be used to seed pods."
|
||||
{
|
||||
"@type": "YargsParameter",
|
||||
"name": "seededPodConfigJson",
|
||||
"options": {
|
||||
"requiresArg": true,
|
||||
"type": "string",
|
||||
"describe": "Path to the file that will be used to seed pods."
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
"options": {
|
||||
"usage": "node ./bin/server.js [args]"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user