Skip to content

Commit

Permalink
Merge pull request #26091 from qmonmert/execa9
Browse files Browse the repository at this point in the history
bump execa from 8.0.1 to 9.0.2
  • Loading branch information
DanielFran authored May 10, 2024
2 parents d66dd90 + 144ef5f commit 1d2b58a
Show file tree
Hide file tree
Showing 3 changed files with 732 additions and 942 deletions.
7 changes: 5 additions & 2 deletions generators/info/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* limitations under the License.
*/
import chalk from 'chalk';
import type { ExecaReturnValue } from 'execa';

import BaseApplicationGenerator from '../base-application/index.js';
import JSONToJDLEntityConverter from '../../jdl/converters/json-to-jdl-entity-converter.js';
Expand Down Expand Up @@ -119,7 +118,11 @@ export default class InfoGenerator extends BaseApplicationGenerator {
});
}

async checkCommand(command: string, args: string[], printInfo = ({ stdout }: ExecaReturnValue<string>) => console.log(stdout)) {
async checkCommand(
command: string,
args: string[],
printInfo: (result: { stdout: string; stderr: string }) => void = ({ stdout }) => console.log(stdout),
) {
try {
printInfo(await this.spawn(command, args, { stdio: 'pipe' }));
} catch (_error) {
Expand Down
Loading

0 comments on commit 1d2b58a

Please sign in to comment.