remove custom command from default config given that it is now inbuilt

This commit is contained in:
Jesse Duffield 2022-05-11 19:38:41 +10:00
parent 100fc69f85
commit d3e84881bb
2 changed files with 17 additions and 16 deletions

View file

@ -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: []
```

View file

@ -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{