Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hirenko-v committed Sep 29, 2024
1 parent a8ce670 commit 5095e3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/job/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (e *MsgExecutor) Execute(ctx context.Context, in executor.ExecuteInput) (ex
}

if strings.TrimSpace(in.Command) == pluginName {
return initialMessages(ctx, envs), nil
return initialMessages(ctx, envs, e), nil
}

msg := fmt.Sprintf("Plain command: %s", in.Command)
Expand Down Expand Up @@ -246,7 +246,8 @@ func getBotkubeJobs(ctx context.Context, envs map[string]string) ([]Job) {
return jobList
}

func initialMessages(ctx context.Context, envs map[string]string) executor.ExecuteOutput {
func initialMessages(ctx context.Context, envs map[string]string, e *MsgExecutor) executor.ExecuteOutput {
e.sessionID = uuid.New().String()
var jobList []api.OptionItem
jobs := getBotkubeJobs(ctx, envs)
for _, job := range jobs {
Expand Down

0 comments on commit 5095e3c

Please sign in to comment.