[add] Neo prepare match sid support

This commit is contained in:
Max 2023-08-04 17:14:09 +08:00
parent dd05336443
commit deefe6db70
2 changed files with 2 additions and 2 deletions

View file

@ -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:"-"`

View file

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