From d64aa503f8245f867f75d5b3b6315340014ad3d2 Mon Sep 17 00:00:00 2001 From: Brian Cristante Date: Fri, 16 Mar 2018 16:18:33 -0400 Subject: [PATCH 1/3] Add supported commands to TaskLibAnswers --- node/mock-answer.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/node/mock-answer.ts b/node/mock-answer.ts index 250a2e002..845fa78f6 100644 --- a/node/mock-answer.ts +++ b/node/mock-answer.ts @@ -8,13 +8,15 @@ export interface TaskLibAnswerExecResult { } export interface TaskLibAnswers { - which?: { [key: string]: string; }, - exec?: { [ key: string]: TaskLibAnswerExecResult }, checkPath?: { [key: string]: boolean }, + cwd?: { [key: string]: string }, + exec?: { [ key: string]: TaskLibAnswerExecResult }, exist?: { [key: string]: boolean }, find?: { [key: string]: string[] }, findMatch?: { [key: string]: string[] }, + ls?: { [key: string]: string }, rmRF?: { [key: string]: { success: boolean } }, + which?: { [key: string]: string; }, } export class MockAnswers { From 23faaf47f135a1fd11a707155cac01cb18d64263 Mon Sep 17 00:00:00 2001 From: Brian Cristante Date: Fri, 16 Mar 2018 16:18:49 -0400 Subject: [PATCH 2/3] Remove stray semicolon --- node/mock-toolrunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/mock-toolrunner.ts b/node/mock-toolrunner.ts index 45d7f8cf8..0c9463dc5 100644 --- a/node/mock-toolrunner.ts +++ b/node/mock-toolrunner.ts @@ -46,7 +46,7 @@ export interface IExecSyncResult { export function debug(message) { // do nothing, overridden -}; +} export class ToolRunner extends events.EventEmitter { constructor(toolPath) { From 17ab23bc3df646af7d2f3e2c73c8d2a8841bfa26 Mon Sep 17 00:00:00 2001 From: Brian Cristante Date: Fri, 16 Mar 2018 16:19:05 -0400 Subject: [PATCH 3/3] Typescript -> TypeScript --- README.md | 4 ++-- node/README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1b5028b6a..00f15452e 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ Reference examples of our in the box tasks [are here](https://github.com/Microso * __Consistent API:__ The TypeScript and PowerShell libs are largely consistent. They only differ where it makes sense (being true to the platform). * __Tracing for free:__ Tracing has been built-in to many of the commands. Use the SDK and get some debug tracing for free. -## Typescript Tasks +## TypeScript Tasks -Cross platform tasks are written in Typescript. It is the preferred way to write tasks once. +Cross platform tasks are written in TypeScript. It is the preferred way to write tasks once. [![NPM version][npm-lib-image]][npm-lib-url] ![VSTS](https://mseng.visualstudio.com/DefaultCollection/_apis/public/build/definitions/b924d696-3eae-4116-8443-9a18392d8544/2553/badge) diff --git a/node/README.md b/node/README.md index 36382cee4..5112fc774 100644 --- a/node/README.md +++ b/node/README.md @@ -7,15 +7,15 @@ Libraries for writing [Visual Studio Team Services](https://www.visualstudio.com Reference examples of our in the box tasks [are here](https://github.com/Microsoft/vsts-tasks) -## Typescript Tasks +## TypeScript Tasks -Cross platform tasks are written in Typescript. It is the preferred way to write tasks once. +Cross platform tasks are written in TypeScript. It is the preferred way to write tasks once. [![NPM version][npm-lib-image]][npm-lib-url] Step by Step: [Create Task](docs/stepbystep.md) -Documentation: [Typescript API](docs/vsts-task-lib.md), [task JSON schema](https://aka.ms/vsts-tasks.schema.json) +Documentation: [TypeScript API](docs/vsts-task-lib.md), [task JSON schema](https://aka.ms/vsts-tasks.schema.json) Guidance: [Finding Files](docs/findingfiles.md), [Minimum agent version](docs/minagent.md), [Proxy](docs/proxy.md), [Certificate](docs/cert.md)