Improve loggin

This commit is contained in:
Joseph Garrone
2024-05-18 11:40:09 +02:00
parent e69febe0c0
commit 401f390e5b
3 changed files with 64 additions and 18 deletions

View File

@ -65,10 +65,34 @@ program
});
program
.command({
.command<{ port: number; keycloakVersion: string | undefined }>({
"name": "start-keycloak",
"description": "Spin up a pre configured Docker image of Keycloak to test your theme."
})
.option({
"key": "port",
"name": (() => {
const name = "port";
optionsKeys.push(name);
return name;
})(),
"description": "Keycloak server port.",
"defaultValue": 8080
})
.option({
"key": "keycloakVersion",
"name": (() => {
const name = "keycloak-version";
optionsKeys.push(name);
return name;
})(),
"description": "Use a specific version of Keycloak.",
"defaultValue": undefined
})
.task({
skip,
"handler": cliCommandOptions =>