You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In this branch of UDS CLI, we are bringing in BubbleTea as our TUI. For most Zarf packages, we can configure Zarf with message.NoProgress = true and everything looks great
However, when deploying a package after an init pkg we get pterm artifacts showing up in our BubbleTea program
## Description
Allows for Zarf's logs to still be sent to a log file, but be muted
otherwise.
```go
logFile, err := message.UseLogFile("")
if err != nil {
return err // handle the error as you see fit
}
location := message.LogFileLocation() // get the log file location if you want to
// set pterm output to only go to this logfile
pterm.SetDefaultOutput(logFile)
// disable progress bars (otherwise they will still get printed to STDERR)
message.NoProgress = true
```
## Related Issue
Fixes#2372
## Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] Other (security config, docs update, etc)
## Checklist before merging
- [ ] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow)
followed
---------
Signed-off-by: razzle <harry@razzle.cloud>
Is your feature request related to a problem? Please describe.
In this branch of UDS CLI, we are bringing in BubbleTea as our TUI. For most Zarf packages, we can configure Zarf with
message.NoProgress = true
and everything looks greatHowever, when deploying a package after an
init
pkg we get pterm artifacts showing up in our BubbleTea programDescribe the solution you'd like
We'd like to:
Additional Details
Haven't looked too much into it, but it looks like there are instances in the Zarf deploy lifecycle that modify pterm's output: example
The text was updated successfully, but these errors were encountered: