@diez/cli-core
APIs for the Diez command line interface.
Last updated 5 days ago by diezadmin .
SEE LICENSE.md · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @diez/cli-core 
SYNC missed versions from official npm registry.

@diez/cli-core

This package provides the core functionality of the extensible Diez command line interface.

Diez configurations, which can be specified either in package.json using the special "diez" key or in a dedicated .diezrc file, can extend the command line functionality in various ways, including registering compiler targets and providing entire new commands.

A CliCommandProvider can be implemented in a Diez package like this:

// src/commands/command.ts
import {CliCommandProvider} from '@diez/cli-core';

const provider: CliCommandProvider = {
  loadAction: () => action,
  name: 'command',
  description: 'Command description',
  options: [
    {
      shortName: 'o',
      longName: 'option',
      valueName: 'optionValue',
      description: 'Some option.',
    },
  ],
};

export = provider;

A custom command provider can be registered in package-name/package.json:

{
  "name": "package-name",
  ...,
  "diez": {
    "providers": {
      "commands": ["./lib/commands/command"]
    }
  }
}

or in package-name/.diezrc:

{
  "providers": {
    "commands": ["./lib/commands/command"]
  }
}

The resulting command can be invoked with: diez command --option [-o] <optionValue>.

Current Tags

  • 10.2.0-beta.0                                ...           10.2.0-beta.0 (4 months ago)
  • 10.2.0-beta.1                                ...           10.2.0-beta.1 (4 months ago)
  • 10.2.0-beta.2                                ...           10.2.0-beta.2 (4 months ago)
  • 10.3.0-beta.0                                ...           10.3.0-beta.0 (3 months ago)
  • 10.4.0-beta.0                                ...           10.4.0-beta.0 (2 months ago)
  • 10.4.0-beta.1                                ...           10.4.0-beta.1 (2 months ago)
  • 10.5.0-beta.0                                ...           10.5.0-beta.0 (2 months ago)
  • 10.5.0-beta.1                                ...           10.5.0-beta.1 (2 months ago)
  • 10.5.0-beta.2                                ...           10.5.0-beta.2 (2 months ago)
  • 10.5.0-beta.3                                ...           10.5.0-beta.3 (2 months ago)
  • 10.5.0-beta.5                                ...           10.5.0-beta.5 (2 months ago)
  • 10.5.0-beta.6                                ...           10.5.0-beta.6 (2 months ago)
  • 10.6.0-beta.0                                ...           10.6.0-beta.0 (6 days ago)
  • 10.6.0-beta.1                                ...           10.6.0-beta.1 (5 days ago)
  • 10.6.0                                ...           latest (5 days ago)

47 Versions

  • 10.6.0                                ...           5 days ago
  • 10.6.0-beta.1                                ...           5 days ago
  • 10.6.0-beta.0                                ...           6 days ago
  • 10.5.2                                ...           a month ago
  • 10.5.0                                ...           2 months ago
  • 10.5.0-beta.6                                ...           2 months ago
  • 10.5.0-beta.5                                ...           2 months ago
  • 10.5.0-beta.3                                ...           2 months ago
  • 10.5.0-beta.2                                ...           2 months ago
  • 10.5.0-beta.1                                ...           2 months ago
  • 10.5.0-beta.0                                ...           2 months ago
  • 10.4.0                                ...           2 months ago
  • 10.4.0-beta.1                                ...           2 months ago
  • 10.4.0-beta.0                                ...           2 months ago
  • 10.3.1                                ...           3 months ago
  • 10.3.0                                ...           3 months ago
  • 10.3.0-beta.0                                ...           3 months ago
  • 10.2.3                                ...           4 months ago
  • 10.2.2                                ...           4 months ago
  • 10.2.1                                ...           4 months ago
  • 10.2.0                                ...           4 months ago
  • 10.2.0-beta.2                                ...           4 months ago
  • 10.2.0-beta.1                                ...           4 months ago
  • 10.2.0-beta.0                                ...           4 months ago
  • 10.1.0                                ...           5 months ago
  • 10.0.2                                ...           6 months ago
  • 10.0.1                                ...           6 months ago
  • 10.0.0                                ...           6 months ago
  • 10.0.0-beta.6                                ...           7 months ago
  • 10.0.0-beta.5                                ...           8 months ago
  • 10.0.0-beta.4                                ...           10 months ago
  • 10.0.0-beta.3                                ...           10 months ago
  • 10.0.0-beta.2                                ...           10 months ago
  • 10.0.0-beta.1                                ...           a year ago
  • 10.0.0-beta.0                                ...           a year ago
  • 10.0.0-alpha.8                                ...           a year ago
  • 10.0.0-alpha.7                                ...           a year ago
  • 10.0.0-alpha.6                                ...           a year ago
  • 10.0.0-alpha.5                                ...           a year ago
  • 10.0.0-alpha.4                                ...           a year ago
  • 10.0.0-alpha.3                                ...           a year ago
  • 10.0.0-alpha.2                                ...           a year ago
  • 10.0.0-alpha.0                                ...           a year ago
  • 1.0.0-beta.5                                ...           a year ago
  • 1.0.0-beta.4                                ...           a year ago
  • 1.0.0-beta.3                                ...           a year ago
  • 1.0.0-beta.2                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 111
Last Day 0
Last Week 110
Last Month 147
Dependencies (11)
Dev Dependencies (11)

Copyright 2014 - 2016 © taobao.org |