* 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
This version simply prints out the logged in username,
for consistency.
It no longer prints out the current team name.
Squashed commit of the following:
commit 1d4ef6af9507a1180fd9e84b7cc64c7fe3e815fa
Author: Nathan Rajlich <nathan@tootallnate.net>
Date: Fri May 26 14:40:00 2017 -0700
add "whoami" to valid command names
commit 6ea37e49eb1ea2d9b5b12befe26a6a15972e1f6c
Author: Nathan Rajlich <nathan@tootallnate.net>
Date: Fri May 26 14:37:56 2017 -0700
don't log current team name in `now whoami`
Instead, consistently return the logged in username.
Not logged in:
```
$ now whoami
> Not currently logged in! Please run `now --login`.
```
Logged in, stdout is a TTY:
```
$ now whoami
> tootallnate
$ now switch zeit
$ now whoami
> zeit
```
Stdout is NOT a TTY:
```
$ echo "Logged in to Now as $(now whoami)"
Logged in to Now as tootallnate
```
Closes#585.
* 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
* 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
```
> Error! Unknown error: TypeError: Cannot read property 'username' of undefined
TypeError: Cannot read property 'username' of undefined
at /usr/local/lib/node_modules/now/build/bin/now-deploy.js:316:115
at Generator.next (<anonymous>)
at c (/usr/local/lib/node_modules/now/build/bin/now-deploy.js:760:99)
```