Skip to content

Commit e046740

Browse files
brcristastephenmichaelf
authored andcommitted
Update TaskLibAnswers to have all supported commands (microsoft#332)
* Add supported commands to TaskLibAnswers * Remove stray semicolon * Typescript -> TypeScript
1 parent 1f920db commit e046740

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Reference examples of our in the box tasks [are here](https://github.com/Microso
2020
* __Consistent API:__ The TypeScript and PowerShell libs are largely consistent. They only differ where it makes sense (being true to the platform).
2121
* __Tracing for free:__ Tracing has been built-in to many of the commands. Use the SDK and get some debug tracing for free.
2222

23-
## Typescript Tasks
23+
## TypeScript Tasks
2424

25-
Cross platform tasks are written in Typescript. It is the preferred way to write tasks once.
25+
Cross platform tasks are written in TypeScript. It is the preferred way to write tasks once.
2626

2727
[![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)
2828

node/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ Libraries for writing [Visual Studio Team Services](https://www.visualstudio.com
77

88
Reference examples of our in the box tasks [are here](https://github.com/Microsoft/vsts-tasks)
99

10-
## Typescript Tasks
10+
## TypeScript Tasks
1111

12-
Cross platform tasks are written in Typescript. It is the preferred way to write tasks once.
12+
Cross platform tasks are written in TypeScript. It is the preferred way to write tasks once.
1313

1414
[![NPM version][npm-lib-image]][npm-lib-url]
1515

1616
Step by Step: [Create Task](docs/stepbystep.md)
1717

18-
Documentation: [Typescript API](docs/vsts-task-lib.md), [task JSON schema](https://aka.ms/vsts-tasks.schema.json)
18+
Documentation: [TypeScript API](docs/vsts-task-lib.md), [task JSON schema](https://aka.ms/vsts-tasks.schema.json)
1919

2020
Guidance: [Finding Files](docs/findingfiles.md), [Minimum agent version](docs/minagent.md), [Proxy](docs/proxy.md), [Certificate](docs/cert.md)
2121

node/mock-answer.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ export interface TaskLibAnswerExecResult {
88
}
99

1010
export interface TaskLibAnswers {
11-
which?: { [key: string]: string; },
12-
exec?: { [ key: string]: TaskLibAnswerExecResult },
1311
checkPath?: { [key: string]: boolean },
12+
cwd?: { [key: string]: string },
13+
exec?: { [ key: string]: TaskLibAnswerExecResult },
1414
exist?: { [key: string]: boolean },
1515
find?: { [key: string]: string[] },
1616
findMatch?: { [key: string]: string[] },
17+
ls?: { [key: string]: string },
1718
rmRF?: { [key: string]: { success: boolean } },
19+
which?: { [key: string]: string; },
1820
}
1921

2022
export class MockAnswers {

node/mock-toolrunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface IExecSyncResult {
4646

4747
export function debug(message) {
4848
// do nothing, overridden
49-
};
49+
}
5050

5151
export class ToolRunner extends events.EventEmitter {
5252
constructor(toolPath) {

0 commit comments

Comments
 (0)