Skip to content

Add Output Template Option #1196

@dwisiswant0

Description

@dwisiswant0

Please describe your feature request:

The -output-template option should allow users to define custom output formats using templates, providing flexibility in structuring results. This feature would replace the -field flag and enable users to extract and format specific data directly from the command line.

Describe the use case of this feature:

Users may want to format output according to their specific needs, such as extracting particular fields like email and url and displaying them in a structured format. For example, with the command:

katana -u https://example.com -output-template '{{email}} - {{url}}'

The output would present extracted email addresses alongside their corresponding URLs. Additionally, any unresolved or missing fields should be omitted from the output to ensure clean formatting. This feature enhances usability by allowing customized data presentation without requiring additional processing.

Sub-issues

Metadata

Metadata

Assignees

Labels

Type: EnhancementMost issues will probably ask for additions or changes.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions