Comparing version 1.1.2 to 1.1.3
@@ -60,3 +60,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
.clear(); | ||
return [4 /*yield*/, (new input_1.Input(this.t, { prompt: 'Message: ' })).run()]; | ||
return [4 /*yield*/, (new input_1.Input(this.t, { prompt: 'Commit message: ' })).run()]; | ||
case 1: | ||
@@ -67,3 +67,3 @@ response = _a.sent(); | ||
.clear() | ||
.write(this.t.interactor.color.red(this.t.interactor.decorate.bold('No message provided!'))).newLine().newLine(); | ||
.write(this.t.interactor.color.red(this.t.interactor.decorate.bold('No message provided! So the commit didn\'t go through.'))).newLine().newLine(); | ||
return [4 /*yield*/, (new press_enter_to_continue_1.PressEnterToContinue(this.t)).run()]; | ||
@@ -70,0 +70,0 @@ case 2: |
@@ -45,2 +45,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
var push_1 = require("./push"); | ||
var new_branch_1 = require("./new-branch"); | ||
var switch_branch_1 = require("./switch-branch"); | ||
var MainPage = /** @class */ (function () { | ||
@@ -76,2 +78,14 @@ function MainPage(app, t) { | ||
} | ||
}, | ||
{ | ||
name: 'New branch', | ||
"function": { | ||
base: 'git checkout -b' | ||
} | ||
}, | ||
{ | ||
name: 'Switch branches', | ||
"function": { | ||
base: 'git checkout' | ||
} | ||
} | ||
@@ -144,2 +158,8 @@ ]; | ||
} | ||
case 4: { | ||
return [2 /*return*/, new new_branch_1.NewBranchPage(this.app, this.t)]; | ||
} | ||
case 5: { | ||
return [2 /*return*/, new switch_branch_1.SwitchBranchPage(this.app, this.t)]; | ||
} | ||
} | ||
@@ -146,0 +166,0 @@ return [2 /*return*/, this]; |
@@ -172,3 +172,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
.clearLine() | ||
.write(this.t.interactor.color.blue(this.t.interactor.decorate.bold(this.config.prompt))) | ||
.write(this.t.interactor.color.green(this.t.interactor.decorate.bold(this.config.prompt))) | ||
.write(this.input); | ||
@@ -175,0 +175,0 @@ }; |
{ | ||
"name": "agita", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"main": "bin/index.js", | ||
@@ -5,0 +5,0 @@ "author": "Joel Huggett", |
111006
32
2391