UNPKG
nest-cli
Version:
latest (0.0.5)
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Unofficial command-line tool to control Nest devices
github.com/jasonmit/nest-cli
jasonmit/nest-cli
nest-cli
/
lib
/
commands
/
login.js
19 lines
(14 loc)
•
297 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'use strict'
;
const
LoginTask
=
require
(
'../tasks/login'
);
module
.
exports
= {
name
:
'login'
,
description
:
'login to your nest account via oauth'
,
priority
:
999
,
run
(
pin
) {
const
task =
new
LoginTask
({
app
:
this
.
app
,
ui
:
this
.
ui
});
return
task.
run
(pin); } };