jesseduffield / jesseduffield/lazydocker
can't use pipe in serviceLogs and viewServiceLogs commands
- Dominant language
- Go
- Stars
- 52.8k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Trying to use pipe in in config file for serviceLogs and viewServiceLogs but get an error:
`No such service: |`
**To Reproduce**
Steps to reproduce the behavior:
1. Run lazydocker in a docker-compose directory
2. Go to config file
3. Set viewServiceLogs to:
`{{ .DockerCompose }} logs --no-color {{ .Service.Name }} | sed -u 's/^[^|]*[^ ]* //' | jq -RM '. as $raw | try fromjson catch $raw'`
4. Save and exit (restart lazydocker in case config doesn't update)
5. Press m on a service
6. See error
**Expected behaviour**
For it to pipe through the first part to the next part like in bash. viewContainerLogs works with pipe but for serviceLogs it doesn't
**Screenshots**

**Desktop (please complete the following information):**
- OS: Linux
- Lazydocker Version v0.12
Contributor guide
Assessment
This issue has not been assessed yet.