Skip to content

Update raw mode #1976

@thomas-zahner

Description

@thomas-zahner

Either remove the raw format (--format raw) or make it useful. Currently it is useless. It is equivalent of simply piping to /dev/null. e.g. lychee https://example.com > /dev/null. The name is confusing, it sounds like it should output a simple, probably machine-readable "raw" summary in the end.

Background

Ok, I've just double-checked. It was introduced in 8c0a32d. Even back then final stats were hidden with raw mode. (format_stats returned None) The only difference was in the ResponseFormatter (write_response) which is used for printing progress (not the final result).

This is different by now. We now have mode to specify how progress formatting is done. (e.g. emoji)
Because of this I would like to fully remove raw mode. It serves no purpose except hiding the final output. But this equivalent with e.g. piping to /dev/null.

Originally posted by @thomas-zahner in #1975 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions