tim neutkens
de8470fe02
Move duplicated code into utils module
8 years ago
Leo Lamprecht
8cde1663c5
Re-alias when running `now alias`
8 years ago
Jarmo Isotalo
e71cdb8440
Log erros and stacktraces ( #276 )
8 years ago
Leo Lamprecht
add7bcfbea
Require `--alias` for all existing kinds of automatic aliasing
8 years ago
Leo Lamprecht
7ccb4de336
New name for `alias` property
8 years ago
Leo Lamprecht
fb03bd6c21
Allow the `alias` field to be an array
8 years ago
Nathan Rajlich
540caa4db7
fixes for when `nowConfig` is null
8 years ago
Nathan Rajlich
4c9caa420b
initial `now.json` support
8 years ago
Leo Lamprecht
b997c71dd4
Contextual newlines added
8 years ago
Leo Lamprecht
513ecfb7de
Added extensions to binaries
8 years ago
Leo Lamprecht
158bf64ea2
No need to set language type anymore
8 years ago
Leo Lamprecht
9f073ad25c
Use async-to-gen for all Node versions
8 years ago
Jarmo Isotalo
059918e7ee
Remove babel as dependecy ( #209 )
* Remove babel as a dependency
* Migrate from import foo from foo to const foo = require('foo')
* Update module.exports
* Update commander syntax
* Update pkg config and fix stuff
* Make XO happy
* Fix path in tests
* Fix typo
* Fix cleanup
* Debug pkg
* Fix pkg
* Fix process.argv for subcommands
* Run with --harmony-async-await when supported thx igor for help with this trick :D
* Use bash
* Set engines.node in package.json
8 years ago
Luke Edwards
f2a4ee0adc
XO Happiness ( #197 )
* Comply to rule 'no-useless-escape'
* Comply to rule 'no-case-declarations'
* Comply to rule 'ava/no-ignored-test-files'
8 years ago
Leo Lamprecht
d8da820fe7
y OR N
8 years ago
Leo Lamprecht
026e2cdf7b
Bumped dependencies
8 years ago
Remy Sharp
ce32dce2aa
Support `now alias` reading `config.alias` ( #93 )
* feat: support `now alias` reading config.alias
Reads the last deployment and will automatically alias to the package.json's config.alias property
* chore: corrected typo on `console.time`
* fix: use `root/now.alias` over `root/config.alias`
8 years ago
Leo Lamprecht
e32bd818e4
Make binaries comply to linting rules
8 years ago
Leo Lamprecht
c67c051699
The binaries are made of JavaScript
8 years ago
Leo Lamprecht
076817309c
Group imports by kind
8 years ago
Leo Lamprecht
fb28ec4ba5
Empty line after binary indicator
8 years ago
Leo Lamprecht
66711afaeb
Capitalize command descriptions
8 years ago
Nathan Rajlich
3f78172428
only consider 1 result for the "single" verbage ( #170 )
English is hard… 0 uses the "multiple" verbage. We want:
0 domains
1 domain
2 domains
3 domains
…etc.
8 years ago
Nathan Rajlich
139a44918e
alias: better "invalid arguments" error messages ( #169 )
8 years ago
Olli Vanhoja
b98bc74f0b
Don't print the list if there is no entries
8 years ago
Olli Vanhoja
87c4b1fc16
Add header to alias and secrets command
8 years ago
Olli Vanhoja
b6f135419d
Proper strlen function for strings containing ANSI escape codes
8 years ago
Olli Vanhoja
db10a26c84
Fix table alignments in listings
8 years ago
Vitaly Domnikov
cc157180a8
Fix `now alias ls` inconsistency
Fix `now alias ls` inconsistency.
8 years ago
Guillermo Rauch
fc8e4f8e20
make indendation consistent
8 years ago
Guillermo Rauch
c4248cebaa
add totals to listings and fix plurals
8 years ago
Olli Vanhoja
c6f42c36e3
Add --token and --config options
--token=MYTOKEN
--config=/path/to/.now.json
8 years ago
Olli Vanhoja
18733b30ee
Fix rm warnings ( #107 )
9 years ago
Guillermo Rauch
eb04657b2f
Add zeit world (wip) ( #67 )
* alias: clean up the alias (trailing and leading dots)
* alias: improve domain validation and implement zeit.world
* is-zeit-world: detect valid zeit.world nameservers
* package: add domain-regex dep
* now-alias: fix edge case with older aliases or removed deployments
* alias: move listing aliases and retrying to `index`
* index: generalize retrying and alias listing
* alias: remove `retry` dep
* now-remove: print out alias warning
* typo
* now-alias: prevent double lookup
* now: add domain / domains command
* now-deploy: document `domain`
* agent: allow for tls-less, agent-less requests while testing
* is-zeit-world: fix nameserver typo
* dns: as-promised
* now-alias: fix `rm` table
* now-alias: no longer admit argument after `alias ls`
@rase- please verify this, but I think it was overkill?
* admit "aliases" as an alternative to alias
* make domain name resolution, creation and verification reusable
* index: add nameserver discover, domain setup functions (reused between alias and domains)
* now-domains: add command
* domains: commands
* package: bump eslint
* now-alias: simplify sort
* now-domains: sort list
* now-domains: improve deletion and output of empty elements
* errors: improve output
* domains: add more debug output
* domains: extra logging
* errors: improve logging
* now-remove: improve `now rm` error handling
* index: more reasonable retrying
* alias: support empty dns configurations
* dns: remove ns fn
* alias: improve post-dns-editing verification
* index: remove unneeded dns lookup
* index: implement new `getNameservers`
* index: customizable retries
* alias: improve error
* improve error handling and cert retrying
* customizable retries
* alias: better error handling
* alias: display both error messages
* better error handling
* improve error handling for certificate verification errors
* alias: set up a `*` CNAME to simplify further aliases
* alias: fewer retries for certs, more spaced out (prevent rate limiting issues)
* alias: ultimate error handling
* add whois fallback
* adjust timer labels for whois fallback
* index: whois fallback also upon 500 errors
* alias: fix error message
* fix duplicate aliases declaration
9 years ago
Guillermo Rauch
6dcd7b68dd
now-alias: fix edge case with older aliases or removed deployments
9 years ago
Tony Kovanen
7f4e498b57
Underline urls in `alias rm` and show target
9 years ago
Tony Kovanen
196692a5c5
Add confirmation to `alias rm`
9 years ago
Guillermo Rauch
62bacc5968
now-alias: close socket gracefully
9 years ago
Guillermo Rauch
a649bd7597
now-alias: improve ls output
9 years ago
Tony Kovanen
f10c533a61
Move exit
9 years ago
Tony Kovanen
c93fbc6489
Fix default usage of `alias set`
9 years ago
Tony Kovanen
b29fce99db
Fix timestamp usage
9 years ago
Tony Kovanen
4aab8c6c8e
`alias ls` logic
9 years ago
Tony Kovanen
9418d983f2
`exit(0)` when successful
9 years ago
Tony Kovanen
80237aef32
Fix alias argv usage
9 years ago
Guillermo Rauch
b65f57e4d5
now-alias: pass only strings (minimist converts to `Number`)
9 years ago
Guillermo Rauch
7feb738b33
now-alias: support `userError` errors
9 years ago
Guillermo Rauch
c65a8ad7ce
properly specify minimist options
9 years ago
Guillermo Rauch
83b948f8d6
prevent minimist from parsing an argument as an option value
otherwise:
`now -d /path`
would fail
protip cc @rase- @nkzawa
9 years ago
Guillermo Rauch
54bb5eeb39
now-alias: remove redundant msg
9 years ago