- Added
legacyFindFilesfor tasks porting from the PowerShell or PowerShell3 execution handler.
- Updated
ToolRunnerto provide better arg quoting for .cmd/.bat files on Windows and also enable specifying exact command lines on Windows.
- Fixed bug in
findin introduced in 0.9.8. On Windows all subdirectories were not always traversed. Loss of precision in inode was interfering with cyclical-symlink detection logic.
- Updated
setVariableto expose an optional boolean parametersecret. - Added
getVariablesto get an array of all variables, secret and non-secret. - Updated
mkdirPto improve error messages. - Updated
findto expose options whether to follow symlinks. - Updated
matchto provide an overload that accepts an array of patterns.
- API clean up as we approach 1.0 major version
- Added typings to npm module so typescript and VS Code finds easily
tl.createToolRunner()changed totl.tool();tr.arg,tr.argIfreturns ToolRunner now for easy chainingtr.argStringchanged totr.linetr.argPathremoved. It was a compat only useless method.- changes above allow easy lines like
await tl.tool('git').arg('--version');
- Pattern change. Use async function with code in try/catch. SetResult to fail in the catch. See samples.
- setResult will not halt execution. Process.exit caused output loss in some scenarios.
- All GetInput functions will throw if required and not supplied
- Disk operations will throw if they fail
- mv and cp take options string as optional arg
- Starting API clean of deprecated method.
- tl.exit() removed. Unsafe to exit process. Script should execute
- Updated
setResultto log the message as an error issue if the result is Failed.
- Updated
getDelimitedInputto remove empty entries.
- Updated
ToolRunnerto emit lines. - Fixed initialization so that
.taskkeyfile is not left in the repo root.
- Updated
ToolRunner.argto simply append to the arg array that is passed tospawn. - Added
ToolRunner.argStringto split additional arguments, which are then appended to the arg array that is passed tospawn.