Skip to content

Commit 01d75c9

Browse files
Do not fetch notifications on hidden commands
1 parent ceb2a3b commit 01d75c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli-kit/src/public/node/hooks/postrun.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {Command, Hook} from '@oclif/core'
1010
export const hook: Hook.Postrun = async ({config, Command}) => {
1111
await detectStopCommand(Command as unknown as typeof Command)
1212
await reportAnalyticsEvent({config, exitMode: 'ok'})
13-
fetchNotificationsInBackground()
13+
if (!Command.hidden) fetchNotificationsInBackground()
1414
deprecationsHook(Command)
1515

1616
const command = Command.id.replace(/:/g, ' ')

0 commit comments

Comments
 (0)