diff --git a/lib/cmd/target-list.js b/lib/cmd/target-list.js index ee6d2f1..58b7589 100644 --- a/lib/cmd/target-list.js +++ b/lib/cmd/target-list.js @@ -2,6 +2,9 @@ const prompt = require('prompt'); +const HOSTNAME_PROTOCOL = process.env.HOSTNAME_PROTOCOL || 'https'; +const HOSTNAME_PORT = process.env.HOSTNAME_PORT || ''; + module.exports = async () => { // eslint-disable-next-line global-require const getTargetList = require('../get-target-list'); @@ -37,7 +40,7 @@ module.exports = async () => { result.forEach((item) => { console.log([ '-', - item.full_url, + `${HOSTNAME_PROTOCOL}://${item.full_url}${HOSTNAME_PORT}`, item.target_url, item.user_email, item.created,