How to use the yargonaut.helpStyle function in yargonaut

To help you get started, we’ve selected a few yargonaut 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 sakuli / sakuli / packages / sakuli-cli / src / index.ts View on Github external
#!/usr/bin/env node

import * as figlet from "figlet";

declare function require(id: string): any;

require('yargonaut')
    .helpStyle('green')
    .errorsStyle('red.bold');

import {bootstrap, loadBootstrapOptions} from "@sakuli/core";
import * as yargs from 'yargs';
import chalk from 'chalk';
import {runCommand} from './commands/run-command.function';

import {loadPresets} from "./load-presets.function";
import {cwd} from "process";
import {cli} from "./cli-utils/command-line.class";

(async () => {

    const options = await loadBootstrapOptions(cwd());
    const sakuli = await bootstrap(options, loadPresets);
github stone-payments / pos-mamba-sdk / packages / cli / src / cli.js View on Github external
#!/usr/bin/env node

require('yargonaut')
  .helpStyle('green')
  .errorsStyle('red');

const yargs = require('yargs');

const appCmds = require('./namespaces/app/index.js');
const posCmds = require('./namespaces/pos/index.js');
const newCmds = require('./namespaces/new/index.js');

yargs
  .usage('usage: $0  ')
  .demand(1)
  .command(appCmds)
  .command(posCmds)
  .command(newCmds)
  .strict()
github shoutem / cli / src / cli.js View on Github external
require('yargonaut')
  .helpStyle('green.underline')
  .errorsStyle('red.bold');

import 'colors';
import 'fetch-everywhere';
import yargs from 'yargs';
import { version } from '../package.json';
import apiUrls from '../config/services';
import autoUpdate from './commands/update-cli';
import * as analytics from './services/analytics';
import { isAscii, containsSpace } from './services/validation';
import getHomeDir from './home-dir';
import { authorizeRequests, getRefreshToken } from './clients/auth-service';

const cliReferenceUrl = 'https://shoutem.github.io/docs/extensions/reference/cli';

yargonaut

Decorate yargs content with chalk styles and figlet fonts

Apache-2.0
Latest version published 6 years ago

Package Health Score

47 / 100
Full package analysis