import { exec as execImpl , ExecOptions } from '@actions/exec' ; export default async function exec ( commandLine , args ? , options ? ) { options = options || { } ; let stdout = '' ; let stderr = '' ; options . listeners = { stdout : ( data ) => ( stdout += data . toString ( ) ) , stderr : ( data ) => ( stderr += data . toString ( ) ) } ; const code = await execImpl ( commandLine , args , options ) ; return { code , stdout , stderr } ; } export interface ExecResult { code : number ; stdout : string ; stderr : string ; }