The kss/lib/cli
module is a wrapper around the code used by the
bin/kss
command line utility.
const cli = require('kss/lib/cli');
- Source:
Methods
(inner) cli(opts) → {Promise.<(KssStyleGuide|null)>}
Parses command line arguments in opts.argv
and outputs messages and errors
on opts.stdout
and opts.stderr
, respectively.
Parameters:
Name | Type | Description |
---|---|---|
opts |
Object | The |
- Source:
Returns:
A Promise
object resolving to a
KssStyleGuide
object, or to null
if the clone option is used.
- Type
- Promise.<(KssStyleGuide|null)>