How to use the @tryghost/pretty-cli.configure function in @tryghost/pretty-cli

To help you get started, we’ve selected a few @tryghost/pretty-cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TryGhost / gscan / bin / cli.js View on Github external
#!/usr/bin/env node
const prettyCLI = require('@tryghost/pretty-cli');
const ui = require('@tryghost/pretty-cli').ui;
const _ = require('lodash');
const chalk = require('chalk');
const gscan = require('../lib');

const options = {
    format: 'cli'
};

let levels;

prettyCLI
    .configure({
        name: 'gscan'
    })
    .groupOrder([
        'Sources:',
        'Utilities:',
        'Commands:',
        'Arguments:',
        'Required Options:',
        'Options:',
        'Global Options:'
    ])
    .positional('', {
        paramsDesc: 'Theme folder or .zip file path',
        mustExist: true
    })

@tryghost/pretty-cli

A mini-module to style a sywac instance in a standard way

MIT
Latest version published 3 months ago

Package Health Score

66 / 100
Full package analysis

Similar packages