NodesListCommand constructor

NodesListCommand()

Creates the nodes-list command.

Implementation

NodesListCommand() {
  _addApiOptions(argParser);
  argParser
    ..addMultiOption(
      'label',
      help: 'Only nodes with this label "key=value" (repeatable).',
    )
    ..addFlag(
      'online',
      help: 'Only online (or, negated, only offline) nodes.',
    )
    ..addFlag(
      'offline',
      negatable: false,
      help: 'Only offline nodes — the ones that want attention.',
    );
}