Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: explain go templates in custom commands #428

Merged
merged 4 commits into from
Jul 21, 2023

Conversation

jchvz
Copy link
Contributor

@jchvz jchvz commented Jan 27, 2023

This PR edits the Config.md doc to explain the go template variables that are available to authors of custom commands.

With this info documented, it becomes much easier for users to write commands such as:

customCommands:
  containers:
    -
      name: dive
      attach: true
      command: dive {{ .Container.Container.ImageID }}
      serviceNames: []

This also takes care of a minor yaml issue in the doc. Before the change, Github highlighted this as invalid:
image

@jesseduffield jesseduffield merged commit 66f5d17 into jesseduffield:master Jul 21, 2023
@jesseduffield
Copy link
Owner

Thanks for making this @jchvz !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants