Skip to content
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

Merged
merged 2 commits into from
Apr 26, 2019
Merged

Add stdin as input-parameter to exec-bee #222

merged 2 commits into from
Apr 26, 2019

Conversation

mkrauser
Copy link
Contributor

The commands executed by execbee can now receive data via stdin

@@ -103,6 +104,11 @@ func (factory *ExecBeeFactory) Actions() []bees.ActionDescriptor {
Description: "command to be executed",
Type: "string",
Mandatory: true,
}, {
Copy link
Owner

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.

Copy link
Contributor Author

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

Copy link
Owner

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

Copy link
Owner

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.

}

go func() {
mod.Logf("StdIn" + stdin)
Copy link
Owner

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.

@muesli
Copy link
Owner

muesli commented Apr 26, 2019

Thanks for your contribution! Looking good, just a few remarks I added above. Simply force push to your branch, if you make any changes.

@muesli muesli merged commit 70d4a80 into muesli:master Apr 26, 2019
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.

2 participants