1.0.0 • Published 4 years ago

sywac-style-chunky v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

sywac-style-chunky

A chunky style for your sywac CLI application.

Screenshot

Install

$ npm install sywac
$ npm install sywac-style-chunky

Usage

const sywac = require('sywac');
const chunky = require('sywac-style-chunky');

sywac.style(chunky);

NOTE This style renders group headers without trailing colons and in uppercase, but the underlying group names aren't changed - keep this in mind if you use .groupOrder, for example.

sywac
  .number('port', { group: 'Server Options:' })
  .groupOrder(['Arguments:', 'Options:', 'Server Options:'])
  .style(chunky);

// ARGUMENTS
//   ...
//
// OPTIONS
//   ...
//
// SERVER OPTIONS
//   ...