Skip to content

Commit

Permalink
disable startup notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
sapiderman committed Jan 23, 2025
1 parent ca7d95b commit f7e813e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/src/pages/guides/cli-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ monika --follow-redirects 0 # disable following redirects

## SKIP

For applications where a startup message is not desired, you can skip monika startup message using `--skip-startup-message`.
For applications where a startup message or startup notification is not desired, you can skip monika startup message using `--skip-start-message`.

```bash
monika --skip-startup-message
monika --skip-start-message
```

## STUN
Expand Down
9 changes: 6 additions & 3 deletions src/commands/monika.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,12 @@ export default class Monika extends Command {
break
}

sendMonikaStartMessage(notifications).catch((error) =>
log.error(error.message)
)
if (flags['skip-start-message'] === false) {
// if skipping, skip also startup notification
sendMonikaStartMessage(notifications).catch((error) =>
log.error(error.message)
)
}

// schedule status update notification
scheduleSummaryNotification({ config, flags })
Expand Down

0 comments on commit f7e813e

Please sign in to comment.