Skip to content

Commit

Permalink
configure strings as options instead of commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Calvin Koepke committed Jun 19, 2020
1 parent 4930a5d commit a43be7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/cmds/secrets_cmds/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const humanizeField = name => {
}
};

exports.command = 'add <name> <value>';
exports.command = 'add <name> [value]';
exports.desc = 'Adds a secret';

exports.builder = yargs => {
Expand All @@ -35,6 +35,8 @@ exports.handler = async args => {
const endpoint = args.endpoint || 'https://api.statickit.com';
const userAgent = `@statickit/cli@${version}`;

console.log(args);

if (!deployKey) {
messages.authRequired();
process.exitCode = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/cmds/secrets_cmds/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const humanizeField = name => {
}
};

exports.command = 'update <name> <value>';
exports.command = 'update <name> [value]';
exports.desc = 'Updates a secret value';

exports.builder = yargs => {
Expand Down

0 comments on commit a43be7d

Please sign in to comment.