Add ansi and verbosity input options (#42)

This commit is contained in:
Andy Palmer 2022-08-17 14:46:44 +01:00 committed by GitHub
commit 56e7af68da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 1 deletions

View file

@ -81,8 +81,10 @@ async function dep() {
}
let cmd = core.getInput('dep')
let ansi = core.getBooleanInput('ansi') ? '--ansi' : '--no-ansi';
let verbosity = core.getInput('verbosity');
let p = execa.command(`php ${dep} --no-interaction --ansi -v ${cmd}`)
let p = execa.command(`php ${dep} --no-interaction ${ansi} ${verbosity} ${cmd}`)
p.stdout.pipe(process.stdout)
p.stderr.pipe(process.stderr)