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