Skip to content

Commit

Permalink
Update refs to formspree
Browse files Browse the repository at this point in the history
  • Loading branch information
derrickreimer committed Aug 18, 2020
1 parent 53562f5 commit 01d1c45
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Used for testing
STATICKIT_TEST_DEPLOY_KEY=
FORMSPREE_TEST_DEPLOY_KEY=
2 changes: 1 addition & 1 deletion src/cmds/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const printErrors = errors => {
};

exports.command = 'deploy';
exports.describe = 'Deploys statickit.json';
exports.describe = 'Deploys formspree.json';

exports.builder = yargs => {
yargs.option('config', {
Expand Down
4 changes: 2 additions & 2 deletions src/cmds/forms_cmds/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ exports.desc = 'Adds a new form to config';

exports.builder = yargs => {
yargs.option('file', {
describe: 'Path to the local `statickit.json` file',
default: 'statickit.json'
describe: 'Path to the local `formspree.json` file',
default: 'formspree.json'
});
};

Expand Down
8 changes: 4 additions & 4 deletions src/cmds/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ const fs = require('fs');
const log = require('../log');

exports.command = 'init';
exports.desc = 'Creates a statickit.json file';
exports.desc = 'Creates a formspree.json file';
exports.builder = {};

exports.handler = _args => {
fs.writeFile('statickit.json', '{}', { flag: 'wx' }, function(err) {
fs.writeFile('formspree.json', '{}', { flag: 'wx' }, function(err) {
if (err) {
log.success('statickit.json already exists');
log.success('formspree.json already exists');
} else {
log.success('statickit.json created');
log.success('formspree.json created');
}
});
};
2 changes: 1 addition & 1 deletion src/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const error = msg => {
* Logs the CLI preamble message.
*/
const preamble = () => {
meta(`StaticKit CLI v${version}`);
meta(`Formspree CLI v${version}`);
};

/**
Expand Down
8 changes: 4 additions & 4 deletions src/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ const authRequired = () => {
There are couple ways to use your key:
- Use the ${log.variable('-k')} flag, or
- Set the ${log.variable('STATICKIT_DEPLOY_KEY')} env variable
- Set the ${log.variable('FORMSPREE_DEPLOY_KEY')} env variable
${chalk.yellow.bold('-- Examples -----------------------------------------------')}
The inline method looks like this:
${chalk.gray('$')} statickit deploy ${chalk.cyan('-k')} ${chalk.yellow('<your-deploy-key>')}
${chalk.gray('$')} formspree deploy ${chalk.cyan('-k')} ${chalk.yellow('<your-deploy-key>')}
For convenience, you can add it to a ${log.variable('.env')} file.
That way, you don't have to copy/paste it every time
you run a command:
${chalk.gray('$')} echo "STATICKIT_DEPLOY_KEY=${chalk.yellow('<your-deploy-key>')}" >> .env
${chalk.gray('$')} statickit deploy
${chalk.gray('$')} echo "FORMSPREE_DEPLOY_KEY=${chalk.yellow('<your-deploy-key>')}" >> .env
${chalk.gray('$')} formspree deploy
Just be sure to add ${log.variable('.env')} to your ${log.variable('.gitignore')} file,
so your deploy key does not end up in version control.
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const readConfig = file => {
if (err.code === 'ENOENT') {
return {};
} else {
logError('statickit.json could not be parsed');
logError('formspree.json could not be parsed');
throw err;
}
}
Expand Down

0 comments on commit 01d1c45

Please sign in to comment.