Skip to content

Commit

Permalink
feat: disable progress bars when running in CI (#126)
Browse files Browse the repository at this point in the history
## Description

This disables progress bars when `CI` is set to `true`

## Related Issue

Fixes #124 

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [X] Test, docs, adr added or updated as needed
- [X] [Contributor Guide
Steps](https://github.com/defenseunicorns/maru-runner/blob/main/CONTRIBUTING.md)
followed
  • Loading branch information
Racer159 authored Jul 10, 2024
1 parent b2896bd commit 661333b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ func cliSetup() {
message.SLog.Warn(fmt.Sprintf("Unable to setup log file: %s", err.Error()))
}
}

if os.Getenv("CI") == "true" {
message.NoProgress = true
}
}

// exitOnInterrupt catches an interrupt and exits with fatal error
Expand Down

0 comments on commit 661333b

Please sign in to comment.