From 01552bbf0825c16e68f280854507a7c14feefcc2 Mon Sep 17 00:00:00 2001 From: mdonovan Date: Tue, 20 Oct 2015 14:35:13 -0400 Subject: [PATCH] adding link command --- Gruntfile.js | 7 +++++++ lib/runner.js | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index cb4ff07..c87485e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -86,6 +86,13 @@ module.exports = function (grunt) { } } }, ['pass']); + + gtx.create('link', 'tester', { + options:{ + command: 'link', + opts:{} + } + }, ['pass']); gtx.alias('pass', ['gtx-group:pass']); gtx.alias('fail', []); diff --git a/lib/runner.js b/lib/runner.js index e284e95..2455fac 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -38,11 +38,17 @@ function getRunner(grunt) { return api.reinstall(opts); }); } + + function link(options){ + var api = getAPI(options); + return api.link('.'); + } return { getAPI: getAPI, commands: { - reinstall: reinstall + reinstall: reinstall, + link: link } }; }