diff --git a/docs/Config.md b/docs/Config.md index 219df9e0..603002fa 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -104,7 +104,10 @@ customCommands: serviceNames: [] ``` -For a full list of template variables that are available (such as `{{ .Container.ID }}`), see the fields of our [Container struct](https://pkg.go.dev/github.com/jesseduffield/lazydocker@v0.20.0/pkg/commands#Container). For example, to write a command that uses a container's image ID, you can use `{{ .Container.Container.ImageID }}`. +You may use the following go templates (such as `{{ .Container.ID }}` above) in your commands: +- `{{ .DockerCompose }}`: the docker compose command (default: `docker-compose`) +- [`{{ .Container }}`](https://pkg.go.dev/github.com/jesseduffield/lazydocker@v0.20.0/pkg/commands#Container) and its fields. For example: `{{ .Container.Container.ImageID }}` +- [`{{ .Service }}`](https://pkg.go.dev/github.com/jesseduffield/lazydocker@v0.20.0/pkg/commands#Service) and its fields. For example: `{{ .Service.Name }}` ## Replacements