addressed review comments

This commit is contained in:
aksm-ms 2020-11-06 13:47:39 +05:30
commit 072c92e926
2 changed files with 6 additions and 6 deletions

View file

@ -111,11 +111,11 @@ function main() {
}
});
}
function executeAzCliCommand(command, silent, options = {}, parameters = []) {
function executeAzCliCommand(command, silent, execOptions = {}, args = []) {
return __awaiter(this, void 0, void 0, function* () {
options.silent = !!silent;
execOptions.silent = !!silent;
try {
yield exec.exec(`"${azPath}" ${command}`, parameters, options);
yield exec.exec(`"${azPath}" ${command}`, args, execOptions);
}
catch (error) {
throw new Error(error);

View file

@ -96,10 +96,10 @@ async function main() {
}
}
async function executeAzCliCommand(command: string, silent?: boolean, options: any = {}, parameters: any = []) {
options.silent = !!silent;
async function executeAzCliCommand(command: string, silent?: boolean, execOptions: any = {}, args: any = []) {
execOptions.silent = !!silent;
try {
await exec.exec(`"${azPath}" ${command}`, parameters, options);
await exec.exec(`"${azPath}" ${command}`, args, execOptions);
}
catch(error) {
throw new Error(error);