ocLogin task prints token on the command line
Thanks for these awesome plugins! Especially in love with providing a thin wrapper around existing command line tools and the docker isolation to make it portable.
I've noticed that the OcLogin task prints the login token when invoking the task. This is problematic from a security point of view.
Can you point out to me how to disable printing of the login token on the command line?
Thanks, Fabio
thx! yes that really has to change. in general the output should maybe be a bit more compact, like hiding the docker things by default..
I wasn't sure if the logging is provided by Gradle's built in Exec task. But skimming the source code I think this is not the case. I'll give it a shot. Did you have something particular in mind when mentioning more compact. I would recommend using Gradle's default logger for printing commands with info (without args) and trace [or debug?] (with args).
What do you think?
gradle logger sounds good. maybe with a flag to decide whether to do INFO or DEBUG logging. i find gradle logger customization not overly great. And I kind of like seeing which commands get executed, because you can then see how it is works and do the same things manually. but the docker parameters, volume mappings, etc. could be hidden. for that we have the wrapper scripts.
should you find time, would be great
What do you think about above commit? If you agree on naming & impl in general I'll add documentation & tests.
looks good to me