Add test command to test status of set list of local routes (#29)
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user