@resin.io/device-types
Shared pieces for resin.io device type manifests
Last updated a year ago by balena.io .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @resin.io/device-types 
SYNC missed versions from official npm registry.

This repo holds the common bits used to compose the resin device types info.

Extra Options

Device type can declare extra options needed for the Image Maker.

Options are declared as an array of definitions that partially conform to the Inquirer.js format.

The following option types are recognized at the moment:

  • input (default),
  • list,
  • confirm.

Each client treats these types differently. For example, Web UI renders list as a drop-down and confirm as a checkbox.

The following attributes are supported:

  • type – as defined above,
  • name — the name of the parameter as it's sent to the Image Maker,
  • message — the question / label shown in the UI,
  • choices — for list only; an array of strings that are possible choices.

For confirm input type the client should not send any value if the question got negative answer (checkbox is unchecked in the UI, or "No" is answered in the CLI), and should send 1 or true otherwise. This behavior could be done more robust (support 0 and false), but that should be changed on the Image Maker side.

Current Tags

7 Versions

  • 10.5.0-s-resin-balena-g-2a49c303942664f7f1dd80420d348465c1d8eb62                                ...           a year ago
  • 10.5.0                                ...           a year ago
  • 10.4.2                                ...           2 years ago
  • 10.4.1                                ...           2 years ago
  • 10.3.0                                ...           3 years ago
  • 10.2.0                                ...           4 years ago
  • 10.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 162
Last Day 1
Last Week 57
Last Month 185
Dependencies (1)
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |