mirror of
https://github.com/deployphp/action.git
synced 2025-06-28 20:24:14 +00:00
Add ansi and verbosity input options (#42)
This commit is contained in:
parent
0bf91d3ad5
commit
56e7af68da
3 changed files with 21 additions and 1 deletions
4
index.js
4
index.js
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue