Skip to content

Commit

Permalink
feat: update the env var message to use the proper OS syntax (twilio#93)
Browse files Browse the repository at this point in the history
Windows uses the 'set' command while *nix requires the 'export' command.
  • Loading branch information
childish-sambino authored Jun 26, 2020
1 parent 79f7db7 commit 91a1898
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/services/messaging/help-messages.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
const { CLI_NAME } = require('../config');

const ENV_VAR_CMD = process.platform === 'win32' ? 'set' : 'export';

exports.HELP_ENVIRONMENT_VARIABLES = `Alternatively, ${CLI_NAME} can use credentials stored in environment variables:
# OPTION 1 (recommended)
TWILIO_ACCOUNT_SID = your Account SID from twil.io/console
TWILIO_API_KEY = an API Key created at twil.io/get-api-key
TWILIO_API_SECRET = the secret for the API Key
${ENV_VAR_CMD} TWILIO_ACCOUNT_SID=your Account SID from twil.io/console
${ENV_VAR_CMD} TWILIO_API_KEY=an API Key created at twil.io/get-api-key
${ENV_VAR_CMD} TWILIO_API_SECRET=the secret for the API Key
# OPTION 2
TWILIO_ACCOUNT_SID = your Account SID from twil.io/console
TWILIO_AUTH_TOKEN = your Auth Token from twil.io/console
${ENV_VAR_CMD} TWILIO_ACCOUNT_SID=your Account SID from twil.io/console
${ENV_VAR_CMD} TWILIO_AUTH_TOKEN=your Auth Token from twil.io/console
Once these environment variables are set, a ${CLI_NAME} profile is not required to move forward with installation.`;

Expand Down

0 comments on commit 91a1898

Please sign in to comment.