From deefe6db707a959c4b96f06027ae356805a591f5 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 4 Aug 2023 17:14:09 +0800 Subject: [PATCH] [add] Neo prepare match sid support --- neo/command/types.go | 2 +- neo/neo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/command/types.go b/neo/command/types.go index e018ca82..072ed3bf 100644 --- a/neo/command/types.go +++ b/neo/command/types.go @@ -69,7 +69,7 @@ type Optional struct { // Context the context type Context struct { - Sid string `json:"-" yaml:"-"` + Sid string `json:"sid" yaml:"-"` Stack string `json:"stack,omitempty"` Path string `json:"pathname,omitempty"` context.Context `json:"-" yaml:"-"` diff --git a/neo/neo.go b/neo/neo.go index 4feca8f6..07ed960d 100644 --- a/neo/neo.go +++ b/neo/neo.go @@ -303,7 +303,7 @@ func (neo *DSL) prepare(ctx command.Context, messages []map[string]interface{}) return prompts } - data, err := p.Exec() + data, err := p.WithSID(ctx.Sid).Exec() if err != nil { color.Red("Neo prepare execute error: %s", err.Error()) return prompts