Skip to content

[Feature]: Allow collect to take JSON or YAML as input #128

@davidallendj

Description

@davidallendj

Describe the feature

The collect command should allow taking JSON or YAML input formats similar to the output of the scan command. This would enable two things:

  1. Allow you to pipe the output of scan directly into collect.
  2. Allow you to manually create JSON or YAML files as input to bypass needing the scan entirely while also retaining the concurrency benefit of using collect.

This change should only require the collect command to accept incoming data either through standard input or via a data flag (i.e. --data or -d ). This may also require specifying the input format with another flag explicitly (i.e. --input-format or -f).

Why do you want this feature?

This allows bypassing scan but still use collect when BMCs are already known.

Alternatives you've considered

It's possible to achieve similar results using crawl, but this would be down sequentially not using goroutines.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions