Leo Lamprecht
8 years ago
No known key found for this signature in database
GPG Key ID: EF804E3FF4BBA8AB
2 changed files with
31 additions and
2 deletions
-
bin/now
-
bin/now-static
|
|
@ -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 = []; |
|
|
|
|
|
@ -0,0 +1,3 @@ |
|
|
|
#!/usr/bin/env node |
|
|
|
|
|
|
|
import chalk from 'chalk'; |