mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
remove custom command from default config given that it is now inbuilt
This commit is contained in:
parent
100fc69f85
commit
d3e84881bb
2 changed files with 17 additions and 16 deletions
|
|
@ -46,12 +46,6 @@ commandTemplates:
|
||||||
dockerComposeConfig: '{{ .DockerCompose }} config'
|
dockerComposeConfig: '{{ .DockerCompose }} config'
|
||||||
checkDockerComposeConfig: '{{ .DockerCompose }} config --quiet'
|
checkDockerComposeConfig: '{{ .DockerCompose }} config --quiet'
|
||||||
serviceTop: '{{ .DockerCompose }} top {{ .Service.Name }}'
|
serviceTop: '{{ .DockerCompose }} top {{ .Service.Name }}'
|
||||||
customCommands:
|
|
||||||
containers:
|
|
||||||
- name: bash
|
|
||||||
attach: true
|
|
||||||
command: "docker exec -it {{ .Container.ID }} /bin/sh -c 'eval $(grep ^$(id -un): /etc/passwd | cut -d : -f 7-)'"
|
|
||||||
serviceNames: []
|
|
||||||
oS:
|
oS:
|
||||||
openCommand: open {{filename}}
|
openCommand: open {{filename}}
|
||||||
openLinkCommand: open {{link}}
|
openLinkCommand: open {{link}}
|
||||||
|
|
@ -84,3 +78,16 @@ The available attributes are:
|
||||||
- bold
|
- bold
|
||||||
- reverse # useful for high-contrast
|
- reverse # useful for high-contrast
|
||||||
- underline
|
- underline
|
||||||
|
|
||||||
|
## Custom Commands
|
||||||
|
|
||||||
|
You can add custom commands like so:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
customCommands:
|
||||||
|
containers:
|
||||||
|
- name: bash
|
||||||
|
attach: true
|
||||||
|
command: 'docker exec -it {{ .Container.ID }} bash'
|
||||||
|
serviceNames: []
|
||||||
|
```
|
||||||
|
|
|
||||||
|
|
@ -339,16 +339,10 @@ func GetDefaultConfig() UserConfig {
|
||||||
ViewContainerLogs: "docker logs --timestamps --follow --since=60m {{ .Container.ID }}",
|
ViewContainerLogs: "docker logs --timestamps --follow --since=60m {{ .Container.ID }}",
|
||||||
},
|
},
|
||||||
CustomCommands: CustomCommands{
|
CustomCommands: CustomCommands{
|
||||||
Containers: []CustomCommand{
|
Containers: []CustomCommand{},
|
||||||
{
|
Services: []CustomCommand{},
|
||||||
Name: "bash",
|
Images: []CustomCommand{},
|
||||||
Command: "docker exec -it {{ .Container.ID }} /bin/sh -c 'eval $(grep ^$(id -un): /etc/passwd | cut -d : -f 7-)'",
|
Volumes: []CustomCommand{},
|
||||||
Attach: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Services: []CustomCommand{},
|
|
||||||
Images: []CustomCommand{},
|
|
||||||
Volumes: []CustomCommand{},
|
|
||||||
},
|
},
|
||||||
BulkCommands: CustomCommands{
|
BulkCommands: CustomCommands{
|
||||||
Services: []CustomCommand{
|
Services: []CustomCommand{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue