Wrap custom commands on shell by gusandrioli · Pull Request #387 · jesseduffield/lazydocker (original) (raw)

Here's the result using the issue's example:

(base) ➜ lazydocker git:(master) ✗ go run -mod=vendor main.go docker-compose config --quiet

1:C 15 Oct 2022 19:27:44.265 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 15 Oct 2022 19:27:44.265 # Redis version=7.0.5, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 15 Oct 2022 19:27:44.265 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 1:M 15 Oct 2022 19:27:44.265 * monotonic clock: POSIX clock_gettime .
.-``_ ''-._
.-`` . . ''-._ Redis 7.0.5 (00000000/0) 64 bit .- .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.-.|'_.-'| Port: 6379 | -._ ._ / _.-' | PID: 1 -._ -._ -./ _.-' _.-'
|`-.
-._ -..-' .-'.-'|
| -._-.
.-'.-' | https://redis.io
-._ -.-.__.-'_.-' _.-' |-.-._ -._.-' .-'.-'|
| -._-.
.-'.-' |
-._ -.-.__.-'_.-' _.-' -. -.__.-' _.-' -.
_.-'
`-.__.-'

1:M 15 Oct 2022 19:27:44.266 # Server initialized 1:M 15 Oct 2022 19:27:44.269 * Ready to accept connections ^C1:signal-handler (1665862067) Received SIGINT scheduling shutdown... 1:M 15 Oct 2022 19:27:47.999 # User requested shutdown... 1:M 15 Oct 2022 19:27:47.999 * Saving the final RDB snapshot before exiting. 1:M 15 Oct 2022 19:27:48.022 * DB saved on disk 1:M 15 Oct 2022 19:27:48.023 # Redis is now ready to exit, bye bye...

Press enter to return to lazydocker (this prompt can be disabled in your config by setting gui.returnImmediately: true)