Skip to content

[Feature Request] Generic output formatting with global format parameter #65

@RincewindsHat

Description

@RincewindsHat

Idea

Implement the output generating code in a way to have one or multiple parameters to specify the output formatting as a whole.

For example, some monitoring systems still use a single line as output, one might want to have output fitting on a pager or, and this is speculation for the future, properly machine readable output might be a thing.

Ideally, in the end I can do something like this:

# my_check --foo bar
[OK] all ok
  \_ [OK] bar

# my_check --foo bar --output one-line
[OK] all ok - [OK] bar


# my_check --foo bar --output whatever
ok - all ok : ok - bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions