| 1 |
#!/usr/bin/perl |
| 2 |
|
| 3 |
use strict; |
| 4 |
use warnings; |
| 5 |
use utf8; |
| 6 |
|
| 7 |
use App::CSAF::Renderer; |
| 8 |
|
| 9 |
exit App::CSAF::Renderer->run(@ARGV) unless caller(); |
| 10 |
|
| 11 |
1; |
| 12 |
|
| 13 |
__END__ |
| 14 |
=encoding utf-8 |
| 15 |
|
| 16 |
=head1 NAME |
| 17 |
|
| 18 |
csaf2html - Convert CSAF documents in HTML |
| 19 |
|
| 20 |
=head1 SYNOPSIS |
| 21 |
|
| 22 |
csaf2html --file FILE |
| 23 |
csaf2html [--help|--man|--version] |
| 24 |
|
| 25 |
Options: |
| 26 |
-f, --file=FILE Input CSAF document |
| 27 |
-o, --output=FILE Output filename |
| 28 |
-t, --template=NAME,PATH Template name or path |
| 29 |
|
| 30 |
-v, --verbose Verbose |
| 31 |
|
| 32 |
--help Brief help message |
| 33 |
--man Full documentation |
| 34 |
--version Print version |
| 35 |
|
| 36 |
=head1 DESCRIPTION |
| 37 |
|
| 38 |
C<csaf2html> Convert CSAF documents in HTML |
| 39 |
|
| 40 |
=head1 EXAMPLES |
| 41 |
|
| 42 |
Converts the CSAF document and writes the rendered HTML content to STDOUT: |
| 43 |
|
| 44 |
$ csaf2html -f csaf-document.json |
| 45 |
|
| 46 |
Converts the CSAF document and writes the rendered HTML content to a file: |
| 47 |
|
| 48 |
$ csaf2html -f csaf-document.json -o csaf-document.html |
| 49 |
|
| 50 |
Use a custom template file (See "Template Toolkit Documentation"): |
| 51 |
|
| 52 |
$ csaf2html -f csaf-document.json -t my-cool-template.tt2 |
| 53 |
|
| 54 |
=head1 SEE ALSO |
| 55 |
|
| 56 |
L<csaf-validator> |
| 57 |
|
| 58 |
=head1 AUTHOR |
| 59 |
|
| 60 |
L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt> |
| 61 |
|
| 62 |
=head1 COPYRIGHT AND LICENSE |
| 63 |
|
| 64 |
Copyright © 2023-2025 L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt> |
| 65 |
|
| 66 |
You may use and distribute this module according to the same terms |
| 67 |
that Perl is distributed under. |