kubectl-slice
kubectl-slice copied to clipboard
Add support for silent operation
Hello,
I am using this module as a static library, for use within a Go application.
It would be great to be able to create a Split object that is silent (i.e. does not print anything to StdErr).
Hey @ianseyer!
Thanks a lot for this, appreciate the PR as well!
I think I'll merge the PR but keep this issue open. I think there could be a bit of a better way to handle it for any other resource coming forward -- knowing that the app could continue to grow. I'm thinking something along the lines of having an io.Writer where if -q is enabled then it would simply set the writer to something like ioutil.Discard. That, or a logging library of some sorts.
Thanks a lot for your contribution!
Hey @ianseyer!
I'm planning to retake some of this soon. In the meantime, I'm also planning to add #66 however just in the CLI side of things. I imagine you want to keep it to your own settings, so it won't be a "package-related change" (to the slice package) but instead just to the CLI.
Just giving you the heads-up in case you have any concerns. Thank you!