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
/
tasks
/
state.js
16 lines
(11 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
;
const
TaskClass
=
require
(
'./-base'
);
class
StateTask
extends
TaskClass
{
run
(
id, state
) {
const
ui =
this
.
ui
;
return
this
.
app
.
api
.
thermostat
.
state
(id, state).
then
(
(
res
) =>
{ ui.
writeLine
(res); }); } }
module
.
exports
=
StateTask
;