Skip to content

[feature]: --no-color option for KubeOps.Cli #1010

@tillig

Description

@tillig

Is your feature request related to a problem? Please describe.

If you have the <GenerateDocumentation> set in your build and this runs on a build server, the ANSI coloring and somewhat dynamic output can make the build logs look long and confusing. This also happens if you have the build running in, say, VS Code - it all shows up in the terminal.

Example build log (with minor redactions)

Describe the solution you would like

It would be nice to have a --no-color option that could be used in automated build situations. Invoking this option would...

  • Remove ANSI color from the output.
  • Remove animations / animated progress spinners from the output and instead use something friendly to a simpler console situation (percentage, dots, etc.).
  • Remove extraneous whitespace/blank lines from the output.

In addition, making the --no-color the way it works if invoked via KubeOps.Operator.targets (the automated build integration) would be nice.

If that can't be made the default, a way to pass additional parameters to the dotnet kubeops invocation in KubeOps.Operator.targets would help folks opt-in to the --no-color behavior.

Additional Context

docker has a similar flag --progress=plain for integration into automated scenarios. It may be interesting to see the differences there if looking for a comparison.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions