This fixes a bug where, when pasting a credit card, it would print the
number correctly, but also append too much placeholder. When hitting
enter, backspace, or another number, it would begin printing (and
formatting) `undefined`. This adds a special case where the CC will be
formatted to account for spaces when comparing against the length of the
existing value or placeholder.
* updated help message for `now switch` to reference the argument for the team as the slug instead of the id
* try ssh if https does not work
* add editor settings to .gitignore, update yarn.lock
* reverting change to teams in separate pr
* Removed unused ignored prop
Retrying multiple times on cert creation doesn't usually help but
makes the user wait for a longer time for nothing. Usually there
is either a configuration error that must be solved or the DNS
change hasn't propagated yet, which will usually take longer than
the retry window.
* Ask for missing environment variables
* Prettified
* Use `info` helper
* Only apply fields if `now` is available
* Don't log
* Isolate our Inquirer patch
* Patch Inquirer before asking for the env fields
* Don't ask for env vars that are already defined
* Revert "Only show update notifications when loaded from npm (#606)"
This reverts commit 3ef666ba8d.
* Revert "Brought the update notification back"
This reverts commit 5d3d9d4f37.
* Revert "Brought the update notification back"
This reverts commit 5d3d9d4f37.
* add _npmPkg to pkg when now is installed via npm
* Prettified it
* Set _npmPkg to null
* Automatically decide deployment type
* Should be a devDep
* Not throwing anymore if both Dockerfile and package.json exist
* Ask to choose type again
* Revert "Not throwing anymore if both Dockerfile and package.json exist"
This reverts commit 2d7136f2dc870406e60289e33de3b2beaea3a917.
* Prettified
* Add `teams ls` command
* Fix Prettier
* Add `teams list` command alias
* Add table output primitive
* Use table output primitive to list team
* Fix name/email for user
* Change indicator for current team
* move `prompt-options.js` to utils/input dir
* make `promptBool()` return false upon Ctrl+C
Also make the `info('Aborted')` output more consistent
across the CLI.
* Revert "handle user abort in `now domains buy` (#554)"
This reverts commit 34151c8193.
* Improve now alias and scale ux
* Print scaling rules even when there is nothing to change, and fix scale-info
* Allow scale to take alias as parameter
* Remove debug print
* Fix list prefix color
* Fix output styling
* remove `instanceof` check
Use duck-type checking instead.
* handle USER_ABORT errors in `handleError()`
* don't print out stack traces upon user abort
Also eliminates the usage of `async-retry` since it was
pretty much overkill for this use case. Instead just extract
the logic out into its own function and call it recursively
when we have to do the user prompt.
* Print `Aborted` upon user about
Since we use Greenkeeper to update dependencies for `now-cli`,
we can depend on it to keep the version of `serve` that we use
for static deployments up-to-date at all times.
* refactor the `readMetaData()` function
* add a couple new test cases
* test: restore "build" prefix
Fixes Node.js <= v6
* add default values for `npm`/`docker` get files functions
Makes the logic simpler, since we don't have to check for existence.
* throw an error when missing start/now-start or server.js
* pass in entire `readMetaData()` result to Now.create()
This avoids us reading these files from the filesystem again