-
-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add stdin as input-parameter to exec-bee #222
Conversation
bees/execbee/execbeefactory.go
Outdated
@@ -103,6 +104,11 @@ func (factory *ExecBeeFactory) Actions() []bees.ActionDescriptor { | |||
Description: "command to be executed", | |||
Type: "string", | |||
Mandatory: true, | |||
}, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure to always run gofmt on your sources before committing them. This will avoid formatting errors like this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, somehow vscode used goreturns after an update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goreturns should actually be fine, as I believe it also uses gofmt internally. Are you sure it caused that styling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems there's more to it. I'll try to fix that later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that gofmt accepts all those syntaxes:
}, {
},
{
},
{
at least on my machine, it only changed the indents, not the newlines. Only if there is more linebreaks than in the last case, those get removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, you are right. Funny that I've noticed that ambiguous behavior before.
bees/execbee/execbee.go
Outdated
} | ||
|
||
go func() { | ||
mod.Logf("StdIn" + stdin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The supplied options / parameters are usually already printed out. I guess we could remove it here.
Thanks for your contribution! Looking good, just a few remarks I added above. Simply force push to your branch, if you make any changes. |
The commands executed by execbee can now receive data via stdin