Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Use @absolunet/terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
jblandry committed Apr 18, 2017
1 parent 3ef3dc9 commit 3c227c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
//--------------------------------------------------------
'use strict';

const echo = console.log; // eslint-disable-line no-console

const os = require('os');
const path = require('path');
const glob = require('glob');
Expand All @@ -14,6 +12,7 @@ const chalk = require('chalk');
const indentString = require('indent-string');
const stringWidth = require('string-width');
const pad = require('@absolunet/terminal-pad');
const terminal = require('@absolunet/terminal');

delete require.cache[__filename];
const pkgPath = path.dirname(module.parent.filename);
Expand Down Expand Up @@ -224,8 +223,8 @@ module.exports = class Cli {

//-- Show task usage and die
static showTaskUsage(meowCli) {
echo(`\n${this.getTaskUsage(meowCli.input[0])}`);
process.exit(2); // eslint-disable-line no-process-exit
terminal.echo(`\n${this.getTaskUsage(meowCli.input[0])}`);
terminal.exit();
}


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@absolunet/cli",
"version": "0.2.0",
"version": "0.2.1",
"description": "CLI utilities",
"definition": "",
"homepage": "https://github.com/absolunet/node-cli",
Expand Down

0 comments on commit 3c227c8

Please sign in to comment.