smartcli/ts/index.ts

31 lines
1.4 KiB
TypeScript
Raw Normal View History

2016-03-14 06:12:00 +00:00
/// <reference path="typings/main.d.ts" />
2015-10-04 21:21:10 +00:00
2016-05-12 01:27:45 +00:00
import * as interfaces from "./smartcli.interfaces"
import * as plugins from "./smartcli.plugins"
import * as SmartcliChecks from "./smartcli.checks";
import * as SmartcliGetters from "./smartcli.getters";
import * as SmartcliInteractions from "./smartcli.interaction";
2016-03-14 06:12:00 +00:00
/* ------------------------------------------------ *
* ---------- plugins for direct use -------------- *
* ------------------------------------------------ */
2016-05-12 01:27:45 +00:00
export let commander = plugins.commander; //commander allows cool chaining of cli actions
2016-03-14 06:12:00 +00:00
export let inquirer = plugins.inquirer; //inquirer is for asking questions
export let cliff = plugins.cliff; // formats cli output
export let argv = plugins.argv; //argv gets initial cli commands and options.
/* ------------------------------------------------ *
2016-03-18 17:08:26 +00:00
* ---------- checks ------------------------------ *
2016-03-14 06:12:00 +00:00
* ------------------------------------------------ */
2016-03-18 17:08:26 +00:00
export let check = SmartcliChecks;
2015-10-04 21:21:10 +00:00
2016-03-18 17:08:26 +00:00
/* ------------------------------------------------ *
* ---------- getters ----------------------------- *
* ------------------------------------------------ */
export let get = SmartcliGetters;
2015-10-04 21:21:10 +00:00
2016-03-18 17:08:26 +00:00
/* ------------------------------------------------ *
* ---------- interaction ----------------------------- *
* ------------------------------------------------ */
export let interaction = SmartcliInteractions;