UNPKG

balena-cli

Version:

The official balena Command Line Interface

26 lines (25 loc) 967 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@oclif/core"); const lazy_1 = require("../../utils/lazy"); class DeviceTrackFleetCmd extends core_1.Command { async run() { const { args: params } = await this.parse(DeviceTrackFleetCmd); const balena = (0, lazy_1.getBalenaSdk)(); await balena.models.device.trackApplicationRelease(params.uuid); } } DeviceTrackFleetCmd.description = (0, lazy_1.stripIndent) ` Make a device track the fleet's pinned release. Make a device track the fleet's pinned release. `; DeviceTrackFleetCmd.examples = ['$ balena device track-fleet 7cf02a6']; DeviceTrackFleetCmd.args = { uuid: core_1.Args.string({ description: "the uuid of the device to make track the fleet's release", required: true, }), }; DeviceTrackFleetCmd.authenticated = true; exports.default = DeviceTrackFleetCmd; //# sourceMappingURL=track-fleet.js.map