knative/func

Proposal: A custom writer to print output from `func` instead of `fmt.Printf`

zroubalik opened this issue · 4 comments

Use a custom writer to print output from func instead of fmt.Print, this common writer would be used for all messages written by the tool. This would allow to set unified look an feel, verbosity from a single place.

For example see Tekton tkn CLI which uses this technique.

/assign

We are currently awaiting completion of a library intended to provide this functionality, and more, consistently across the Knative client and plugins. This library is expected to include this configurable output writer, as well as structured logging, prompts (interactivity) and progress indicators.

When this library reaches a usable beta state, we can go ahead and start implementing it throughout func.

cc @cardil

See the Knative CLI Developer Experience proposal, which covers this topic.