Skip to content

Create print flag to output to standard out #241

Description

@connbrack

Is your feature request related to a problem? Please describe.
It would be useful to have a standard out option, similar to how pip freeze works, for pipe based work flows

Describe the solution you'd like
I like a flag, for example --print that allows the output to be writtent to standard out. That way i could view the output, and if desired I could write it to a file like this:
pigar generate --print > requirements .txt

Describe alternatives you've considered
Right now my current workflow is to write to a tempfile, and run cat on it, but its clunky.

Additional context
Since this is somehow an advanced pip freeze , i think having the option for it to operate the same way would be nice.

Otherwise this project has be awesome! I know the python world is moving to pyproject.toml, but my dev team still uses requirements.txt so I use this tool all the time :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions