jesseduffield / jesseduffield/lazydocker

can't use pipe in serviceLogs and viewServiceLogs commands

Open
#259 1 comment 0 reactions 0 assignees View on GitHub
bug
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**
Screen Shot 2021-06-13 at 10 18 59

**Desktop (please complete the following information):**
- OS: Linux
- Lazydocker Version v0.12

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.