Skip to content

Commit

Permalink
feat: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
another-guy committed Jan 7, 2025
1 parent 813d2cd commit e3472e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function logger(options: CommonOptions) {
...input: unknown[]
) => {
const [first, ...rest] = input;
console.log(colorFn(timestamp()), colorFn(level), colorFn(first as string), colorFn(rest.join(' ')));
console.log(chalk.whiteBright(timestamp()), colorFn(level), chalk.gray(first as string), chalk.gray(rest.join(' ')));
};

return {
Expand Down
4 changes: 3 additions & 1 deletion src/commands/command-mono-run-many.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ export async function monoRunManyAsyncCommand(this: any, str: StrParams, options
const throwOnCode = statusCodes ?
(code: number) => !statusCodes.split(',').map(Number).includes(code) :
nonZeroCode;
const stdout = await execAsync(cmd, { cwd: dir, throwOnCode: throwOnCode });
let stdout = await execAsync(cmd, { cwd: dir, throwOnCode: throwOnCode });
if (stdout[stdout.length - 1] === '\n')
stdout = stdout.slice(0, stdout.length - 1);

const text = `${dir}\n${stdout}`;
if (!quiet)
Expand Down

0 comments on commit e3472e5

Please sign in to comment.