This package has been deprecated

Author message:

Package is no longer maintained

fleetctl-parse-units-list

1.0.0 • Public • Published

fleetctl-parse-units-list Circle CI

Parse output of fleetctl list-units.

Installation

$ npm install fleetctl-parse-units-list --save

Usage

const parse = require('fleetctl-parse-units-list');

let output = yield exec('fleetctl list-units');

/*
UNIT              MACHINE                   ACTIVE  SUB
hozmelago.service sokhire.../141.239.12.114 active  running
*/

let units = parse(output);

/*
units = [{
  name: 'hozmelago',
  machine: {
    name: 'sokhire',
    ip: '141.239.12.114'
  },
  state: 'running'
}]
*/

Tests

Circle CI

$ make test

License

fleetctl-parse-units-list is released under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i fleetctl-parse-units-list

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vdemedes