Skip to content

Commit

Permalink
Merge pull request #27 from wide-vsix/slankdev-patch-1
Browse files Browse the repository at this point in the history
Update config.go
  • Loading branch information
slankdev authored Nov 1, 2022
2 parents 483d191 + 0bc9032 commit a04e45d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkg/ipfix/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ type Hook struct {
// ## Example
// ```
// hooks:
// - command:
// cmd: /usr/bin/cmd1
// - command: /usr/bin/cmd1
// ```
Command *hook.Command `yaml:"command"`
// Shell is the backend that executes the external program. It is similar to
Expand All @@ -63,10 +62,10 @@ type Hook struct {
// and so on.
//
// ## Example ``` hooks: - name: test hook1
// shell:
// shell: |
// #!/bin/sh
// echo `cat` | jq --arg hostname $(hostname) '. + {hostname: $hostname}'
// hooks:
// - shell: |
// #!/bin/sh
// echo `cat` | jq --arg hostname $(hostname) '. + {hostname: $hostname}'
// ```
Shell *hook.Shell `yaml:"shell"`
}
Expand Down

0 comments on commit a04e45d

Please sign in to comment.