Browse Source

Put each command into its own line

master
Leo Lamprecht 8 years ago
parent
commit
79389c1a60
No known key found for this signature in database GPG Key ID: EF804E3FF4BBA8AB
  1. 30
      bin/now
  2. 3
      bin/now-static

30
bin/now

@ -11,6 +11,7 @@ const debug = argv.debug || argv.d;
// auto-update checking
const update = checkUpdate({ debug });
const exit = (code) => {
update.then(() => process.exit(code));
// don't wait for updates more than a second
@ -19,8 +20,33 @@ const exit = (code) => {
};
const defaultCommand = 'deploy';
const commands = new Set([defaultCommand, 'list', 'ls', 'rm', 'remove', 'alias', 'aliases', 'ln', 'domain', 'domains', 'cert', 'certs', 'secret', 'secrets']);
const aliases = new Map([['ls', 'list'], ['rm', 'remove'], ['ln', 'alias'], ['aliases', 'alias'], ['domain', 'domains'], ['cert', 'certs'], ['secret', 'secrets']]);
const commands = new Set([
defaultCommand,
'list',
'ls',
'rm',
'remove',
'alias',
'aliases',
'ln',
'domain',
'domains',
'cert',
'certs',
'secret',
'secrets'
]);
const aliases = new Map([
['ls', 'list'],
['rm', 'remove'],
['ln', 'alias'],
['aliases', 'alias'],
['domain', 'domains'],
['cert', 'certs'],
['secret', 'secrets']
]);
let cmd = argv._[0];
let args = [];

3
bin/now-static

@ -0,0 +1,3 @@
#!/usr/bin/env node
import chalk from 'chalk';
Loading…
Cancel
Save