Skip to content

Conversation

@mcruzdev
Copy link

@mcruzdev mcruzdev commented Oct 24, 2025

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:

Implement for RunTask.shell task.

Closes #246

Special notes for reviewers:

In progress, I will add some commits yet.

Additional information (if needed):

Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
@mcruzdev mcruzdev marked this pull request as ready for review October 27, 2025 02:59
processResult := output.(*ProcessResult)

// Go does not keep the order of map iteration
// TODO: improve the UnMarshal of args to keep the order
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working on it.

Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
Signed-off-by: Matheus Cruz <matheuscruz.dev@gmail.com>
@mcruzdev
Copy link
Author

mcruzdev commented Nov 3, 2025

Hi @ricardozanini, @spolti I think we need to change the FromYAMLSource from parser.go.

The yaml ("sigs.k8s.io/yaml") do the following:

  1. Converts the []byte to interface{}
  2. Converts the YAML to JSON ...

In the step 1 we are losing the order of Arguments that is crucial for the RUn.shell task. Could I change it to keep the order of Arguments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add RunShell task support for running shell commands

1 participant