Skip to content

Commit

Permalink
fix: skip if --json flag present
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Sep 8, 2023
1 parent b1fa4fd commit de7de5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/prerun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Hook, ux } from '@oclif/core';

// eslint-disable-next-line @typescript-eslint/require-await
const hook: Hook.Prerun = async function ({ Command, config }) {
if (process.argv.includes('--json')) return;
const { plugin } = Command;
if (!plugin) return;
if (plugin.type === 'link') return;
Expand Down

0 comments on commit de7de5e

Please sign in to comment.