Comparing version 0.0.1 to 0.0.2
const Mri = require("mri"); | ||
const Utils = require("./utils"); | ||
const events_1 = require("events"); | ||
const command_1 = require("./command"); | ||
const Command_1 = require("./Command"); | ||
const ctrl_1 = require("./ctrl"); | ||
@@ -23,3 +23,3 @@ function showHelpOnExit(cli) { | ||
function setupTopLevelCmd() { | ||
this.topLevelCommand = new command_1.FCliGlobalCommand(this); | ||
this.topLevelCommand = new Command_1.FCliGlobalCommand(this); | ||
this.topLevelCommand.usage('<command> [options]'); | ||
@@ -125,3 +125,3 @@ } | ||
command(raw, description, config) { | ||
const command = new command_1.FCliCommand(raw, description || '', config, this); | ||
const command = new Command_1.FCliCommand(raw, description || '', config, this); | ||
command.topLevelCommand = this.topLevelCommand; | ||
@@ -128,0 +128,0 @@ this.commands.push(command); |
{ | ||
"name": "@fxjs/cli", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "types": "@types/index.d.ts", |
[![NPM version](https://img.shields.io/npm/v/@fxjs/cli.svg?style=flat)](https://npmjs.com/package/@fxjs/cli) | ||
[![NPM downloads](https://img.shields.io/npm/dm/@fxjs/cli.svg?style=flat)](https://npmjs.com/package/@fxjs/cli) | ||
[![Build Status](https://travis-ci.org/fxjs-modules/cli.svg)](https://travis-ci.org/fxjs-modules/cli) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/61m8kfc4hg7msuap?svg=true)](https://ci.appveyor.com/project/richardo2016/cli) | ||
@@ -414,3 +416,3 @@ ## Introduction | ||
In fact, I trid to make PR to [cac.js] to make it support fibjs, in a way, it's much better than [commander.js] in **cross-platform**, you would never find and node.js specific API in [cac.js]! As a contrast, `require('child_process')` is just writeen in [commander.js]'s source code, that made it difficult running [commender.js] in fibjs. | ||
In fact, I trid to make PR to [cac.js] to make it support fibjs, in a way, it's much better than [commander.js] in **cross-platform**, you would never find and node.js specific API in [cac.js]! As a contrast, `require('child_process')` is just writeen in [commander.js]'s source code, that made it difficult running [commander.js] in fibjs. | ||
@@ -417,0 +419,0 @@ But there's some typically better APIs in fibjs that cac.js cannot use --- if do so, [cac.js]'s source code would contains many fibjs-only codes, useless for node.js/deno, that would mutilate elegant structure of [cac.js] |
45690
18
433