Skip to content

Commit 91a1898

Browse files
author
childish-sambino
authored
feat: update the env var message to use the proper OS syntax (twilio#93)
Windows uses the 'set' command while *nix requires the 'export' command.
1 parent 79f7db7 commit 91a1898

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/services/messaging/help-messages.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
const { CLI_NAME } = require('../config');
22

3+
const ENV_VAR_CMD = process.platform === 'win32' ? 'set' : 'export';
4+
35
exports.HELP_ENVIRONMENT_VARIABLES = `Alternatively, ${CLI_NAME} can use credentials stored in environment variables:
46
57
# OPTION 1 (recommended)
6-
TWILIO_ACCOUNT_SID = your Account SID from twil.io/console
7-
TWILIO_API_KEY = an API Key created at twil.io/get-api-key
8-
TWILIO_API_SECRET = the secret for the API Key
8+
${ENV_VAR_CMD} TWILIO_ACCOUNT_SID=your Account SID from twil.io/console
9+
${ENV_VAR_CMD} TWILIO_API_KEY=an API Key created at twil.io/get-api-key
10+
${ENV_VAR_CMD} TWILIO_API_SECRET=the secret for the API Key
911
1012
# OPTION 2
11-
TWILIO_ACCOUNT_SID = your Account SID from twil.io/console
12-
TWILIO_AUTH_TOKEN = your Auth Token from twil.io/console
13+
${ENV_VAR_CMD} TWILIO_ACCOUNT_SID=your Account SID from twil.io/console
14+
${ENV_VAR_CMD} TWILIO_AUTH_TOKEN=your Auth Token from twil.io/console
1315
1416
Once these environment variables are set, a ${CLI_NAME} profile is not required to move forward with installation.`;
1517

0 commit comments

Comments
 (0)