mirror of
https://github.com/azure/login.git
synced 2026-06-07 16:47:08 +00:00
addressed review comments
This commit is contained in:
parent
fd23c2c317
commit
072c92e926
2 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue