Skip to content

Commit

Permalink
Update TaskLibAnswers to have all supported commands (#332)
Browse files Browse the repository at this point in the history
* Add supported commands to TaskLibAnswers

* Remove stray semicolon

* Typescript -> TypeScript
  • Loading branch information
brcrista authored and stephenmichaelf committed Mar 21, 2018
1 parent 1f920db commit e046740
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 4 additions & 2 deletions node/mock-answer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion node/mock-toolrunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface IExecSyncResult {

export function debug(message) {
// do nothing, overridden
};
}

export class ToolRunner extends events.EventEmitter {
constructor(toolPath) {
Expand Down

0 comments on commit e046740

Please sign in to comment.