Skip to content

Add support for the special '-' FILE to print to on screen/to stdout in inventory #584

Description

@tdruez

When running inventory, I want to output the result in stdout instead of creating new file.

See for example scancode-toolkit:

Scan the 'samples' directory for licenses and package manifests. Print scan
  results on screen as pretty-formatted JSON (using the special '-' FILE to print
  to on screen/to stdout):

      scancode --json-pp - --license --package  samples

or python-inspector

python-inspector --help

Use the special '-' file name to print results on screen/stdout.

For example, display the results of resolving the dependencies for
  flask==2.1.2 on screen::

      python-inspector --spec "flask==2.1.2" --json -

Note that this should be added to all commands that require an OUTPUT file argument.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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