work in progress
This commit is contained in:
		
							
								
								
									
										20
									
								
								ts/index.ts
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								ts/index.ts
									
									
									
									
									
								
							@@ -1,10 +1,10 @@
 | 
			
		||||
/// <reference path="typings/main.d.ts" />
 | 
			
		||||
/// <reference path="./smartcli.interfaces.ts" />
 | 
			
		||||
/// <reference path="./smartcli.getters.ts" />
 | 
			
		||||
/// <reference path="./smartcli.interaction.ts" />
 | 
			
		||||
 | 
			
		||||
import plugins = require("./smartcli.plugins");
 | 
			
		||||
import SmartcliChecks = require("./smartcli.checks");
 | 
			
		||||
import SmartcliGetters = require("./smartcli.getters");
 | 
			
		||||
import SmartcliInteractions = require("./smartcli.interaction");
 | 
			
		||||
 | 
			
		||||
/* ------------------------------------------------ *
 | 
			
		||||
 * ---------- plugins for direct use -------------- *
 | 
			
		||||
@@ -14,12 +14,16 @@ export let cliff = plugins.cliff; // formats cli output
 | 
			
		||||
export let argv = plugins.argv; //argv gets initial cli commands and options.
 | 
			
		||||
 | 
			
		||||
/* ------------------------------------------------ *
 | 
			
		||||
 * ---------- checks -------------- *
 | 
			
		||||
 * ---------- checks ------------------------------ *
 | 
			
		||||
 * ------------------------------------------------ */
 | 
			
		||||
export let check = SmartcliChecks;
 | 
			
		||||
 | 
			
		||||
/* ------------------------------------------------ *
 | 
			
		||||
 * ---------- getters ----------------------------- *
 | 
			
		||||
 * ------------------------------------------------ */
 | 
			
		||||
export let get = SmartcliGetters;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
//init checks. Checks return boolean. That means they can be used as question with an answer of yes or no.
 | 
			
		||||
 | 
			
		||||
SmartcliGetters.init(); // is defined in smartcli.getters.ts
 | 
			
		||||
SmartcliInteraction.init(); // is defined in smartcli.interaction.ts
 | 
			
		||||
/* ------------------------------------------------ *
 | 
			
		||||
 * ---------- interaction ----------------------------- *
 | 
			
		||||
 * ------------------------------------------------ */
 | 
			
		||||
export let interaction = SmartcliInteractions;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user