Add test command to test status of set list of local routes (#29)

This commit is contained in:
Anders Gustafsson
2025-09-01 10:09:59 +02:00
committed by GitHub
parent 59beca27a0
commit 3f4d1a4bfb
5 changed files with 124 additions and 1 deletions
+19
View File
@@ -105,11 +105,15 @@ module.exports = {
print.info(
`Created configuration file ${chalk.yellow(`~/.pwcli_settings`)}`,
);
if (!config) {
config = {
gh_token: '',
photowall_repo: '',
mandrill_api_key: '',
localhost_url: '',
localhost_username: '',
localhost_password: '',
};
}
@@ -130,6 +134,21 @@ module.exports = {
initial: config.mandrill_api_key,
}).run();
config.localhost_url = await new Input({
message: `If you want to be able to run route tests against localhost, please enter the base URL for localhost (e.g. https://www.photowall-local.se:8080) >`,
initial: config.localhost_url,
}).run();
config.localhost_username = await new Input({
message: `If you want to be able to run route tests against localhost, please enter the username for localhost >`,
initial: config.localhost_username,
}).run();
config.localhost_password = await new Input({
message: `If you want to be able to run route tests against localhost, please enter the password for localhost >`,
initial: config.localhost_password,
}).run();
print.info(`
${JSON.stringify(config)}