From ab18c75b286f674221e4e646577c7df3afc86113 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 13 Jun 2016 12:56:42 +0200 Subject: [PATCH] introduce new classes --- ts/smartcli.classes.command.ts | 6 ++++++ ...teraction.ts => smartcli.classes.interaction.helpers.ts} | 0 ts/smartcli.classes.interaction.ts | 6 ++++++ ts/smartcli.classes.smartcli.ts | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 ts/smartcli.classes.command.ts rename ts/{smartcli.interaction.ts => smartcli.classes.interaction.helpers.ts} (100%) create mode 100644 ts/smartcli.classes.interaction.ts diff --git a/ts/smartcli.classes.command.ts b/ts/smartcli.classes.command.ts new file mode 100644 index 0000000..bce36dc --- /dev/null +++ b/ts/smartcli.classes.command.ts @@ -0,0 +1,6 @@ +import "typings-global"; +import * as plugins from "./smartcli.plugins"; + +export class Command { + +} \ No newline at end of file diff --git a/ts/smartcli.interaction.ts b/ts/smartcli.classes.interaction.helpers.ts similarity index 100% rename from ts/smartcli.interaction.ts rename to ts/smartcli.classes.interaction.helpers.ts diff --git a/ts/smartcli.classes.interaction.ts b/ts/smartcli.classes.interaction.ts new file mode 100644 index 0000000..bce36dc --- /dev/null +++ b/ts/smartcli.classes.interaction.ts @@ -0,0 +1,6 @@ +import "typings-global"; +import * as plugins from "./smartcli.plugins"; + +export class Command { + +} \ No newline at end of file diff --git a/ts/smartcli.classes.smartcli.ts b/ts/smartcli.classes.smartcli.ts index f2a5a95..c4b8d60 100644 --- a/ts/smartcli.classes.smartcli.ts +++ b/ts/smartcli.classes.smartcli.ts @@ -25,7 +25,7 @@ export class Smartcli { if (this.argv._.indexOf(definitionArg.commandName) == 0) { done.resolve(this.argv); } else { - return done.reject(); + done.reject(this.argv); } }); return done.promsise;