From 610a8b5a408cb3d08f4e4e2d6cf9cbe7194490d5 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Mon, 21 Feb 2022 22:41:32 -0500 Subject: Support piping input to plugin Signed-off-by: Dave Henderson --- plugins_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins_test.go') diff --git a/plugins_test.go b/plugins_test.go index 8590ed34..1e00a908 100644 --- a/plugins_test.go +++ b/plugins_test.go @@ -18,13 +18,13 @@ func TestBindPlugins(t *testing.T) { ctx := context.Background() fm := template.FuncMap{} cfg := &config.Config{ - Plugins: map[string]string{}, + Plugins: map[string]config.PluginConfig{}, } err := bindPlugins(ctx, cfg, fm) assert.NilError(t, err) assert.DeepEqual(t, template.FuncMap{}, fm) - cfg.Plugins = map[string]string{"foo": "bar"} + cfg.Plugins = map[string]config.PluginConfig{"foo": {Cmd: "bar"}} err = bindPlugins(ctx, cfg, fm) assert.NilError(t, err) assert.Check(t, cmp.Contains(fm, "foo")) -- cgit v1.2.3